Last change
on this file since 5808 was
5750,
checked in by bensch, 19 years ago
|
orxonox/trunk: merged the WorldEntities into the Trunk.
Merged with command:
svn merge branches/world_entities/ trunk/ -r5516:HEAD
conflics from world_entities changed in favor of branches/world_entity
all other conflict in favor of the trunk
|
File size:
784 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file object_manager.h |
---|
3 | * @brief Definition of the ... singleton Class |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _OBJECT_MANAGER_H |
---|
7 | #define _OBJECT_MANAGER_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | #include <list> |
---|
11 | |
---|
12 | // FORWARD DECLARATION |
---|
13 | |
---|
14 | |
---|
15 | class ObjectGroupList |
---|
16 | { |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | }; |
---|
21 | |
---|
22 | |
---|
23 | //! A default singleton class. |
---|
24 | class ObjectManager : public BaseObject { |
---|
25 | |
---|
26 | public: |
---|
27 | virtual ~ObjectManager(void); |
---|
28 | /** @returns a Pointer to the only object of this Class */ |
---|
29 | inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager(); return ObjectManager::singletonRef; }; |
---|
30 | |
---|
31 | |
---|
32 | ObjectGroupList* getGroupList( ); |
---|
33 | |
---|
34 | private: |
---|
35 | ObjectManager(void); |
---|
36 | static ObjectManager* singletonRef; |
---|
37 | |
---|
38 | std::list<ObjectGroupList> groupList; |
---|
39 | |
---|
40 | |
---|
41 | }; |
---|
42 | |
---|
43 | #endif /* _OBJECT_MANAGER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.