source:
orxonox.OLD/trunk/src/util/object_manager.h
@
5828
| Last change on this file since 5828 was 5795, checked in by bensch, 20 years ago | |
|---|---|
| File size: 973 bytes | |
| Rev | Line | |
|---|---|---|
| [4838] | 1 | /*! |
| [5629] | 2 | * @file object_manager.h |
| [4838] | 3 | * @brief Definition of the ... singleton Class |
| [3655] | 4 | */ |
| 5 | ||
| [5629] | 6 | #ifndef _OBJECT_MANAGER_H |
| 7 | #define _OBJECT_MANAGER_H | |
| [3655] | 8 | |
| 9 | #include "base_object.h" | |
| [5682] | 10 | #include <list> |
| [3655] | 11 | |
| [5405] | 12 | // FORWARD DECLARATION |
| [5795] | 13 | class PNode; |
| 14 | class WorldEntity; | |
| [3655] | 15 | |
| [5682] | 16 | class ObjectGroupList |
| 17 | { | |
| 18 | ||
| 19 | ||
| 20 | ||
| 21 | }; | |
| 22 | ||
| 23 | ||
| [3655] | 24 | //! A default singleton class. |
| [5629] | 25 | class ObjectManager : public BaseObject { |
| [3655] | 26 | |
| 27 | public: | |
| [5629] | 28 | virtual ~ObjectManager(void); |
| [4838] | 29 | /** @returns a Pointer to the only object of this Class */ |
| [5629] | 30 | inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager(); return ObjectManager::singletonRef; }; |
| [3655] | 31 | |
| [5682] | 32 | |
| [5795] | 33 | static std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID); |
| 34 | ||
| [5682] | 35 | ObjectGroupList* getGroupList( ); |
| 36 | ||
| [3655] | 37 | private: |
| [5629] | 38 | ObjectManager(void); |
| 39 | static ObjectManager* singletonRef; | |
| [5682] | 40 | |
| 41 | std::list<ObjectGroupList> groupList; | |
| 42 | ||
| [5795] | 43 | const std::list<BaseObject>* pNodeList; |
| [5682] | 44 | |
| [5795] | 45 | |
| [3655] | 46 | }; |
| 47 | ||
| [5629] | 48 | #endif /* _OBJECT_MANAGER_H */ |
Note: See TracBrowser
for help on using the repository browser.










