Last change
on this file since 4225 was
4139,
checked in by patrick, 20 years ago
|
orxonox/branches/md2_loader: merged trunk into branche using: svn merge ../trunk/ md2_loader -r 4063:HEAD
|
File size:
1000 bytes
|
Line | |
---|
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.