Changeset 9869 in orxonox.OLD for trunk/src/world_entities/projectiles/guided_missile.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/guided_missile.cc
r9298 r9869 19 19 20 20 #include "state.h" 21 #include "class_list.h" 22 23 #include "dot_emitter.h" 24 #include "sprite_particles.h" 21 22 #include "particles/dot_emitter.h" 23 #include "particles/sprite_particles.h" 25 24 26 25 #include "debug.h" 27 26 28 CREATE_FAST_FACTORY_STATIC(GuidedMissile, CL_GUIDED_MISSILE); 27 #include "class_id_DEPRECATED.h" 28 ObjectListDefinitionID(GuidedMissile, CL_GUIDED_MISSILE); 29 CREATE_FAST_FACTORY_STATIC(GuidedMissile); 29 30 30 31 /** … … 33 34 GuidedMissile::GuidedMissile () : Projectile() 34 35 { 35 this-> setClassID(CL_GUIDED_MISSILE, "GuidedMissile");36 this->registerObject(this, GuidedMissile::_objectList); 36 37 37 38 this->loadModel("models/projectiles/orx-rocket.obj", 2.0); … … 59 60 60 61 /* this is normaly done by World.cc by deleting the ParticleEngine */ 61 if (GuidedMissile::trailParticles != NULL && ClassList::getList(CL_GUIDED_MISSILE)->size() <= 1)62 { 63 if ( ClassList::exists(GuidedMissile::trailParticles, CL_PARTICLE_SYSTEM))62 if (GuidedMissile::trailParticles != NULL && GuidedMissile::objectList().size() <= 1) 63 { 64 if (ParticleSystem::objectList().exists(GuidedMissile::trailParticles)) 64 65 delete GuidedMissile::trailParticles; 65 66 GuidedMissile::trailParticles = NULL; 66 67 } 67 if (GuidedMissile::explosionParticles != NULL && ClassList::getList(CL_GUIDED_MISSILE)->size() <= 1)68 { 69 if ( ClassList::exists(GuidedMissile::explosionParticles, CL_PARTICLE_SYSTEM))68 if (GuidedMissile::explosionParticles != NULL && GuidedMissile::objectList().size() <= 1) 69 { 70 if (ParticleSystem::objectList().exists(GuidedMissile::explosionParticles)) 70 71 delete GuidedMissile::explosionParticles; 71 72 GuidedMissile::explosionParticles = NULL;
Note: See TracChangeset
for help on using the changeset viewer.