Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/projectiles/rocket.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/rocket.cc
r9235 r9709 19 19 20 20 #include "state.h" 21 #include "class_list.h"22 21 23 22 #include "dot_emitter.h" … … 26 25 #include "debug.h" 27 26 28 CREATE_FAST_FACTORY_STATIC(Rocket, CL_ROCKET); 27 #include "class_id.h" 28 NewObjectListDefinitionID(Rocket, CL_ROCKET); 29 CREATE_FAST_FACTORY_STATIC(Rocket); 29 30 30 31 /** … … 33 34 Rocket::Rocket () : Projectile() 34 35 { 35 this-> setClassID(CL_ROCKET, "Rocket");36 this->registerObject(this, Rocket::_objectList); 36 37 37 38 this->loadModel("models/projectiles/orx-rocket.obj", .3); … … 55 56 56 57 /* this is normaly done by World.cc by deleting the ParticleEngine */ 57 if (Rocket::trailParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1)58 if (Rocket::trailParticles != NULL && Rocket::objectList().size() <= 1) 58 59 { 59 60 /* if (ClassList::exists(Rocket::trailParticles, CL_PARTICLE_SYSTEM)) … … 61 62 Rocket::trailParticles = NULL; 62 63 } 63 if (Rocket::explosionParticles != NULL && ClassList::getList(CL_ROCKET)->size() <= 1)64 if (Rocket::explosionParticles != NULL && Rocket::objectList().size() <= 1) 64 65 { 65 66 /* if (ClassList::exists(Rocket::explosionParticles, CL_PARTICLE_SYSTEM))
Note: See TracChangeset
for help on using the changeset viewer.