Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/projectiles/bomb.cc
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/projectiles/bomb.cc
r8362 r9709 25 25 #include "debug.h" 26 26 27 CREATE_FAST_FACTORY_STATIC(Bomb, CL_BOMB); 27 #include "class_id.h" 28 NewObjectListDefinitionID(Bomb, CL_BOMB); 29 CREATE_FAST_FACTORY_STATIC(Bomb); 28 30 29 31 /** … … 67 69 void Bomb::init() 68 70 { 69 this-> setClassID(CL_BOMB, "Bomb");71 this->registerObject(this, Bomb::_objectList); 70 72 71 73 … … 173 175 } 174 176 177 175 178 void Bomb::deactivate() 176 179 { … … 182 185 void Bomb::detonate(float size) 183 186 { 184 ObjectManager::EntityList detonationList; 185 ObjectManager::distanceFromObject(detonationList, *this, size, CL_NPC); 187 /// FIXME 188 /* ObjectManager::EntityList detonationList; 189 ObjectManager::distanceFromObject(detonationList, *this, size, NPC::objectList()); 186 190 while( !detonationList.empty() ) 187 191 { 188 192 detonationList.front()->collidesWith(this, Vector(0,0,0)); 189 193 detonationList.pop_front(); 190 } 194 }*/ 191 195 }
Note: See TracChangeset
for help on using the changeset viewer.