Changeset 9869 in orxonox.OLD for trunk/src/world_entities/projectiles/laser.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/projectiles/laser.cc
r9656 r9869 19 19 20 20 #include "state.h" 21 #include "class_list.h"22 21 #include "model.h" 23 22 24 #include " dot_emitter.h"25 #include " sprite_particles.h"23 #include "particles/dot_emitter.h" 24 #include "particles/sprite_particles.h" 26 25 27 26 #include <cassert> … … 29 28 30 29 31 32 CREATE_FAST_FACTORY_STATIC(Laser, CL_LASER); 30 #include "class_id_DEPRECATED.h" 31 ObjectListDefinition(Laser); 32 CREATE_FAST_FACTORY_STATIC(Laser); 33 33 34 34 /** … … 37 37 Laser::Laser () : Projectile() 38 38 { 39 this-> setClassID(CL_LASER, "Laser");39 this->registerObject(this, Laser::_objectList); 40 40 41 41 this->loadModel("models/projectiles/laser.obj"); … … 61 61 62 62 /* this is normaly done by World.cc by deleting the ParticleEngine */ 63 if (Laser::explosionParticles != NULL && ClassList::getList(CL_LASER)->size() <= 1)63 if (Laser::explosionParticles != NULL && Laser::objectList().size() <= 1) 64 64 { 65 65 //if (ClassList::exists(Laser::explosionParticles, CL_PARTICLE_SYSTEM))
Note: See TracChangeset
for help on using the changeset viewer.