Changeset 6121 in orxonox.OLD for branches/objectmanager/src/util/object_manager.h
- Timestamp:
- Dec 15, 2005, 1:34:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/objectmanager/src/util/object_manager.h
r6120 r6121 1 1 /*! 2 2 * @file object_manager.h 3 * @brief Definition of the ... singleton Class4 */3 * @brief Definition of the ObjectManager. 4 */ 5 5 6 6 #ifndef _OBJECT_MANAGER_H … … 15 15 OM_NULL = 0, 16 16 OM_DEAD, 17 OM_DEAD_TICK, 17 18 OM_ENVIRON_NOTICK, 18 19 OM_ENVIRON, … … 65 66 class WorldEntity; 66 67 67 //! A default singleton class.68 //! A powerfull handler for the Object (WorldEntities) in the World. 68 69 class ObjectManager : public BaseObject { 69 70 70 71 public: 71 virtual ~ObjectManager(void); 72 /** @returns a Pointer to the only object of this Class */ 73 inline static ObjectManager* getInstance(void) { if (!ObjectManager::singletonRef) ObjectManager::singletonRef = new ObjectManager(); return ObjectManager::singletonRef; } 72 ObjectManager(); 73 virtual ~ObjectManager(); 74 74 75 75 void flush(); … … 84 84 static std::list<WorldEntity*>* distanceFromObject(const PNode& center, float radius, ClassID classID); 85 85 86 void debug(OM_LIST omList ) const;87 void debug(const char* listName = NULL );86 void debug(OM_LIST omList, unsigned int level = 0) const; 87 void debug(const char* listName = NULL, unsigned int level = 0); 88 88 89 89 static OM_LIST StringToOMList(const char* listName); … … 91 91 92 92 private: 93 ObjectManager(void);94 static ObjectManager* singletonRef;95 96 93 const std::list<BaseObject>* pNodeList; 97 94
Note: See TracChangeset
for help on using the changeset viewer.