Changeset 4322 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- May 27, 2005, 1:27:02 AM (20 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/garbage_collector.cc
r4320 r4322 139 139 /* then finaly delete reference */ 140 140 //delete entity; 141 ObjectManager::getInstance()->addToDeadList( CL_TEST_BULLET, entity);141 ObjectManager::getInstance()->addToDeadList(entity->getClassID(), entity); 142 142 } 143 143 entity = iterator->nextElement(); -
orxonox/trunk/src/util/object_manager.cc
r4320 r4322 40 40 } 41 41 42 42 43 /** 43 44 \brief the singleton reference to this class … … 66 67 67 68 68 void ObjectManager::addToDeadList( classList index, BaseObject* object)69 void ObjectManager::addToDeadList(int index, BaseObject* object) 69 70 { 70 71 if( likely(this->managedObjectList[index] != NULL)) … … 75 76 76 77 77 BaseObject* ObjectManager::getFromDeadList( classList index, int number)78 BaseObject* ObjectManager::getFromDeadList(int index, int number) 78 79 { 79 80 if( likely(this->managedObjectList[index] != NULL)) -
orxonox/trunk/src/util/object_manager.h
r4315 r4322 52 52 53 53 void mCache(Projectile); 54 void addToDeadList( classList index, BaseObject* object);55 BaseObject* getFromDeadList( classList index, int number = 1);54 void addToDeadList(int index, BaseObject* object); 55 BaseObject* getFromDeadList(int index, int number = 1); 56 56 57 57 void debug();
Note: See TracChangeset
for help on using the changeset viewer.