Changeset 9516 in orxonox.OLD for branches/proxy/src/world_entities/weapons/targeting_turret.h
- Timestamp:
- Jul 27, 2006, 6:45:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/weapons/targeting_turret.h
r8777 r9516 8 8 9 9 #include "weapon.h" 10 11 /* FORWARD DECLARATION */ 12 class Aim; 10 #include "aim.h" 13 11 14 12 class TargetingTurret : public Weapon 15 { 16 public: 17 TargetingTurret (); 18 TargetingTurret(const TiXmlElement* root); 19 virtual ~TargetingTurret (); 13 { 14 public: 15 TargetingTurret(const TiXmlElement* root = NULL); 16 virtual ~TargetingTurret (); 20 17 21 void init(); 22 virtual void loadParams(const TiXmlElement* root); 18 virtual void loadParams(const TiXmlElement* root); 23 19 24 25 20 virtual void activate(); 21 virtual void deactivate(); 26 22 27 28 23 virtual void tick(float dt); 24 virtual void fire(); 29 25 30 26 virtual void draw() const; 31 27 32 private: 33 Aim* target; 34 PNode* lockedTarget; 35 float lockedTime; 36 float neededLockTime; 37 }; 28 private: 29 void init(); 30 31 private: 32 Aim target; 33 PNode* lockedTarget; 34 float lockedTime; 35 float neededLockTime; 36 }; 38 37 39 38 #endif /* _TARGETING_TURRET_H */
Note: See TracChangeset
for help on using the changeset viewer.