Changeset 9186 in orxonox.OLD for branches/presentation/src/world_entities/weapons
- Timestamp:
- Jul 5, 2006, 7:21:25 AM (19 years ago)
- Location:
- branches/presentation/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/aiming_system.cc
r9185 r9186 35 35 */ 36 36 AimingSystem::AimingSystem (WorldEntity* entity) 37 : WorldEntity() 37 38 { 38 39 this->owner = entity; … … 61 62 62 63 // registering default reactions: 64 this->unsubscribeReaction(CREngine::CR_OBJECT_DAMAGE); 63 65 this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, CL_WORLD_ENTITY); 64 66 … … 120 122 121 123 PRINTF(0)("hit hit hit, got: %s\n", killer->getClassName()); 124 printf("aimingsystem: hit()\n"); 122 125 } 123 126 -
branches/presentation/src/world_entities/weapons/aiming_system.h
r9172 r9186 33 33 void setRange(float range){this->range = range;}; 34 34 35 void hit(float damage, WorldEntity* killer); 35 virtual void hit(float damage, WorldEntity* killer); 36 virtual void destroy(WorldEntity* entity) {} 36 37 37 38 virtual void tick(float dt);
Note: See TracChangeset
for help on using the changeset viewer.