|
Last change
on this file since 4357 was
4338,
checked in by bensch, 20 years ago
|
|
orxonox/trunk: merged branches/physics back to the trunk
merged with command
svn merge -r 3866:HEAD . ../../trunk/
many conflict that i tried to resolv
@patrick: i hope i did not interfere with your stuff :/
|
|
File size:
724 bytes
|
| Line | |
|---|
| 1 | /*! |
|---|
| 2 | \file physics_engine.h |
|---|
| 3 | \brief Definition of the ... singleton Class |
|---|
| 4 | |
|---|
| 5 | */ |
|---|
| 6 | |
|---|
| 7 | #ifndef _PHYSICS_ENGINE_H |
|---|
| 8 | #define _PHYSICS_ENGINE_H |
|---|
| 9 | |
|---|
| 10 | #include "base_object.h" |
|---|
| 11 | #include "physics_connection.h" |
|---|
| 12 | #include "fields.h" |
|---|
| 13 | |
|---|
| 14 | // Forward Declaration |
|---|
| 15 | template<class T> class tList; |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | //! A default singleton class. |
|---|
| 19 | class PhysicsEngine : public BaseObject { |
|---|
| 20 | |
|---|
| 21 | public: |
|---|
| 22 | static PhysicsEngine* getInstance(void); |
|---|
| 23 | virtual ~PhysicsEngine(void); |
|---|
| 24 | |
|---|
| 25 | void addConnection(PhysicsConnection* connection); |
|---|
| 26 | void removeConnection(PhysicsConnection* connection); |
|---|
| 27 | |
|---|
| 28 | void tick(float dt); |
|---|
| 29 | |
|---|
| 30 | private: |
|---|
| 31 | PhysicsEngine(void); |
|---|
| 32 | static PhysicsEngine* singletonRef; |
|---|
| 33 | |
|---|
| 34 | tList<PhysicsConnection>* connections; |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | }; |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | #endif /* _PHYSICS_ENGINE_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.