Changeset 9160 in orxonox.OLD for branches/presentation/src/world_entities/weapons/aiming_system.h
- Timestamp:
- Jul 4, 2006, 5:53:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/aiming_system.h
r9157 r9160 7 7 #define _AIMING_SYSTEM_H 8 8 9 #include "p_node.h" 10 #include "element_2d.h" 11 #include "object_manager.h" 9 10 #include "world_entity.h" 11 12 12 13 13 14 // FORWARD DECLARATION 14 15 class TiXmlElement; 16 class BVTree; 17 class Model; 15 18 16 19 17 18 class AimingSystem : public PNode 20 class AimingSystem : public WorldEntity 19 21 { 20 22 … … 30 32 inline PNode* getTarget(PNode* target) { return this->getParent(); }; 31 33 34 inline WorldEntity* getNearestTarget(); 35 32 36 33 37 void setRange(float range){this->range = range;}; 34 void setGroup(OM_LIST group){this->group = group;};35 38 39 void hit(float damage, WorldEntity* killer); 36 40 37 41 virtual void tick(float dt); … … 40 44 41 45 private: 42 float range; //!< 43 OM_LIST group; 46 float range; //!< 47 std::vector<WorldEntity*> selectionList; //!< the selections 48 44 49 45 50 };
Note: See TracChangeset
for help on using the changeset viewer.