|
Last change
on this file since 5920 was
5795,
checked in by bensch, 20 years ago
|
|
orxonox/trunk: merged branches/worldEntities back to the trunk svn merge -r5750:HEAD branches/world_entities/ trunk/
|
|
File size:
973 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 | class PNode; |
|---|
| 14 | class WorldEntity; |
|---|
| 15 | |
|---|
| 16 | class ObjectGroupList |
|---|
| 17 | { |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | }; |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | //! A default singleton class. |
|---|
| 25 | class ObjectManager : public BaseObject { |
|---|
| 26 | |
|---|
| 27 | public: |
|---|
| 28 | virtual ~ObjectManager(void); |
|---|
| 29 | /** @returns a Pointer to the only object of this Class */ |
|---|
| 30 | inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager(); return ObjectManager::singletonRef; }; |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | static std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID); |
|---|
| 34 | |
|---|
| 35 | ObjectGroupList* getGroupList( ); |
|---|
| 36 | |
|---|
| 37 | private: |
|---|
| 38 | ObjectManager(void); |
|---|
| 39 | static ObjectManager* singletonRef; |
|---|
| 40 | |
|---|
| 41 | std::list<ObjectGroupList> groupList; |
|---|
| 42 | |
|---|
| 43 | const std::list<BaseObject>* pNodeList; |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | }; |
|---|
| 47 | |
|---|
| 48 | #endif /* _OBJECT_MANAGER_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.