Changeset 9869 in orxonox.OLD for trunk/src/world_entities/weapons/aiming_system.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aiming_system.cc
r9406 r9869 21 21 22 22 #include "state.h" 23 #include "debug.h" 23 24 24 25 #include "aabb.h" 25 26 #include "obb_tree.h" 26 27 27 #include <vector>28 28 29 29 30 31 30 ObjectListDefinition(AimingSystem); 32 31 33 32 /** … … 55 54 void AimingSystem::init() 56 55 { 57 this-> setClassID(CL_AIMING_SYSTEM, "AimingSystem");56 this->registerObject(this, AimingSystem::_objectList); 58 57 this->setName("AimingSystem"); 59 58 … … 63 62 // registering default reactions: 64 63 this->unsubscribeReaction(CREngine::CR_OBJECT_DAMAGE); 65 this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, CL_WORLD_ENTITY);64 this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, WorldEntity::staticClassID()); 66 65 67 66 this->range = 1000.0f;
Note: See TracChangeset
for help on using the changeset viewer.