| Line |   | 
|---|
| 1 | /*! | 
|---|
| 2 |  * @file aiming_turret.h | 
|---|
| 3 | */ | 
|---|
| 4 |  | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef _TARGETING_TURRET_H | 
|---|
| 7 | #define _TARGETING_TURRET_H | 
|---|
| 8 |  | 
|---|
| 9 | #include "weapon.h" | 
|---|
| 10 | #include "aim.h" | 
|---|
| 11 |  | 
|---|
| 12 | class TargetingTurret : public Weapon | 
|---|
| 13 | { | 
|---|
| 14 |   ObjectListDeclaration(TargetingTurret); | 
|---|
| 15 | public: | 
|---|
| 16 |   TargetingTurret(const TiXmlElement* root = NULL); | 
|---|
| 17 |   virtual ~TargetingTurret (); | 
|---|
| 18 |  | 
|---|
| 19 |   virtual void loadParams(const TiXmlElement* root); | 
|---|
| 20 |  | 
|---|
| 21 |   virtual void activate(); | 
|---|
| 22 |   virtual void deactivate(); | 
|---|
| 23 |  | 
|---|
| 24 |   virtual void tick(float dt); | 
|---|
| 25 |   virtual void fire(); | 
|---|
| 26 |  | 
|---|
| 27 |   virtual void draw() const; | 
|---|
| 28 |  | 
|---|
| 29 |   void setTargetGroup(OM_LIST targetGroup) { this->target->setTargetGroup(targetGroup); }; | 
|---|
| 30 |   const PNode* getLockedTarget() const { return lockedTarget; }; | 
|---|
| 31 |  | 
|---|
| 32 | private: | 
|---|
| 33 |   void init(); | 
|---|
| 34 |  | 
|---|
| 35 | private: | 
|---|
| 36 |   Aim*           target; | 
|---|
| 37 |   PNode*         lockedTarget; | 
|---|
| 38 |   float          lockedTime; | 
|---|
| 39 |   float          neededLockTime; | 
|---|
| 40 | }; | 
|---|
| 41 |  | 
|---|
| 42 | #endif /* _TARGETING_TURRET_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.