Last change
on this file since 4271 was
4245,
checked in by patrick, 20 years ago
|
orxonox/trunk: merged back the md2_loader branche manualy (a full merge was impossible).
|
File size:
1000 bytes
|
Rev | Line | |
---|
[4245] | 1 | /*! |
---|
| 2 | \file object_manager.h |
---|
| 3 | \brief this manager will ceep track of the objects in the world |
---|
| 4 | |
---|
| 5 | This is specially designed to: |
---|
| 6 | - Give an interface to the world data |
---|
| 7 | - separate the world data from the world build,update,draw process |
---|
| 8 | - recycle deleted objects: specific for Projectils since there is a lot of world entity creation/deletion (and this needs a lot of time) |
---|
| 9 | - control the garbage collector |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | #ifndef _OBJECT_MANAGER_H |
---|
| 14 | #define _OBJECT_MANAGER_H |
---|
| 15 | |
---|
| 16 | #include "base_object.h" |
---|
| 17 | |
---|
| 18 | #define OM_ |
---|
| 19 | |
---|
| 20 | class WorldEntity; |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | template<class T> class tList; |
---|
| 24 | |
---|
| 25 | //! the object manager itself |
---|
| 26 | class ObjectManager : public BaseObject { |
---|
| 27 | |
---|
| 28 | public: |
---|
| 29 | static ObjectManager* getInstance(void); |
---|
| 30 | virtual ~ObjectManager(void); |
---|
| 31 | |
---|
| 32 | void preLoad(); |
---|
| 33 | |
---|
| 34 | private: |
---|
| 35 | ObjectManager(void); |
---|
| 36 | static ObjectManager* singletonRef; |
---|
| 37 | |
---|
| 38 | tList<WorldEntity>* projectileBuffer; //!< a list of projectiles that is generated at the beginning to make orx faster |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | #endif /* _OBJECT_MANAGER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.