Last change
on this file since 8915 was
8777,
checked in by patrick, 18 years ago
|
trunk: damage and distruction reimplemented
|
File size:
708 bytes
|
Rev | Line | |
---|
[6255] | 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 | |
---|
| 11 | /* FORWARD DECLARATION */ |
---|
| 12 | class Aim; |
---|
| 13 | |
---|
| 14 | class TargetingTurret : public Weapon |
---|
| 15 | { |
---|
| 16 | public: |
---|
| 17 | TargetingTurret (); |
---|
| 18 | TargetingTurret(const TiXmlElement* root); |
---|
| 19 | virtual ~TargetingTurret (); |
---|
| 20 | |
---|
| 21 | void init(); |
---|
[6512] | 22 | virtual void loadParams(const TiXmlElement* root); |
---|
[6255] | 23 | |
---|
| 24 | virtual void activate(); |
---|
| 25 | virtual void deactivate(); |
---|
| 26 | |
---|
| 27 | virtual void tick(float dt); |
---|
| 28 | virtual void fire(); |
---|
| 29 | |
---|
| 30 | virtual void draw() const; |
---|
| 31 | |
---|
| 32 | private: |
---|
[6637] | 33 | Aim* target; |
---|
| 34 | PNode* lockedTarget; |
---|
| 35 | float lockedTime; |
---|
| 36 | float neededLockTime; |
---|
[8777] | 37 | }; |
---|
[6255] | 38 | |
---|
| 39 | #endif /* _TARGETING_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.