- Timestamp:
- May 27, 2005, 1:27:02 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 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(); -
orxonox/trunk/src/world_entities/projectile.cc
r3755 r4322 33 33 Projectile::Projectile (Weapon* weapon) : WorldEntity() 34 34 { 35 this->setClassID(CL_PROJECTILE, "Projectile"); 35 36 this->weapon = weapon; 36 37 this->flightDirection = NULL; -
orxonox/trunk/src/world_entities/test_bullet.cc
r3757 r4322 33 33 TestBullet::TestBullet (Weapon* weapon) : Projectile(weapon) 34 34 { 35 this->setClassID(CL_TEST_BULLET, "TestBullet"); 35 36 this->model = (Model*)ResourceManager::getInstance()->load("models/test_projectile.obj", OBJ, RP_LEVEL); 36 37 }
Note: See TracChangeset
for help on using the changeset viewer.