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