Changeset 9869 in orxonox.OLD for trunk/src/world_entities/effects/explosion.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/explosion.cc
r9406 r9869 18 18 #include "explosion.h" 19 19 20 #include " fast_factory.h"20 #include "loading/fast_factory.h" 21 21 22 22 #include "state.h" 23 #include "class_list.h"24 23 25 #include " box_emitter.h"26 #include " sprite_particles.h"24 #include "particles/box_emitter.h" 25 #include "particles/sprite_particles.h" 27 26 28 27 29 28 30 31 CREATE_FAST_FACTORY_STATIC(Explosion, CL_EXPLOSION);32 29 #include "class_id_DEPRECATED.h" 30 ObjectListDefinitionID(Explosion, CL_EXPLOSION); 31 CREATE_FAST_FACTORY_STATIC(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.