Changeset 9707 in orxonox.OLD for branches/new_class_id/src/world_entities/effects/explosion.cc
- Timestamp:
- Aug 25, 2006, 9:58:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/effects/explosion.cc
r9406 r9707 21 21 22 22 #include "state.h" 23 #include "class_list.h"24 23 25 24 #include "box_emitter.h" … … 28 27 29 28 30 31 CREATE_FAST_FACTORY_STATIC(Explosion , CL_EXPLOSION);32 29 #include "class_id.h" 30 CREATE_FAST_FACTORY_STATIC(Explosion); 31 NewObjectListDefinitionID(Explosion, CL_EXPLOSION); 33 32 34 33 /** … … 37 36 Explosion::Explosion () 38 37 { 39 this-> setClassID(CL_EXPLOSION, "Explosion");38 this->registerObject(this, Explosion::_objectList); 40 39 this->toList(OM_DEAD_TICK); 41 40 … … 59 58 60 59 /* this is normaly done by World.cc by deleting the ParticleEngine */ 61 if (Explosion::explosionParticles != NULL && ClassList::getList(CL_EXPLOSION)->size() <= 1)60 if (Explosion::explosionParticles != NULL && Explosion::objectList().size() <= 1) 62 61 Explosion::explosionParticles = NULL; 63 62 }
Note: See TracChangeset
for help on using the changeset viewer.