Changeset 4285 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- May 25, 2005, 4:51:27 PM (20 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/loading/load_param.cc
r4261 r4285 10 10 11 11 ### File Specific: 12 main-programmer: Christian Meyer12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ -
orxonox/trunk/src/util/object_manager.cc
r4245 r4285 28 28 this->setClassName ("ObjectManager"); 29 29 30 this->managedObjectList = new BaseObject*[CL_NUMBER]; 30 31 } 31 32 … … 45 46 } 46 47 48 47 49 /** 48 50 \brief standard deconstructor … … 52 54 { 53 55 ObjectManager::singletonRef = NULL; 56 } 54 57 58 59 void ObjectManager::cache(classList index, int number) 60 { 61 this->managedObjectList[index] = new BaseObject(); 55 62 } 63 64 65 void ObjectManager::addToDeadList(const char* className, BaseObject* object) 66 {} 67 68 69 BaseObject* ObjectManager::getFromDeadList(const char* className, int number) 70 {} -
orxonox/trunk/src/util/object_manager.h
r4245 r4285 21 21 22 22 23 //! list of classes able to be loaded via the object manager 24 struct classListElement 25 { 26 char* name; 27 }; 28 #include "class_list.h" 29 30 31 23 32 template<class T> class tList; 33 template<class T> class ManagedObject; 24 34 25 35 //! the object manager itself … … 29 39 static ObjectManager* getInstance(void); 30 40 virtual ~ObjectManager(void); 31 32 void preLoad(); 41 42 void cache(classList index, int number); 43 void addToDeadList(const char* className, BaseObject* object); 44 BaseObject* getFromDeadList(const char* className, int number = 1); 33 45 34 46 private: … … 36 48 static ObjectManager* singletonRef; 37 49 38 tList<WorldEntity>* projectileBuffer; //!< a list of projectiles that is generated at the beginning to make orx faster 50 BaseObject** managedObjectList; 51 }; 39 52 40 53 54 template<class T> class ManagedObject 55 { 56 public: 57 const char* className; 58 tList<T>* objectList; 41 59 }; 42 60 61 #define createClassFromName(className) 62 63 43 64 #endif /* _OBJECT_MANAGER_H */
Note: See TracChangeset
for help on using the changeset viewer.