Last change
on this file since 9656 was
9656,
checked in by bensch, 18 years ago
|
orxonox/trunk: merged the proxy bache back with no conflicts
|
File size:
802 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" |
---|
[9656] | 10 | #include "aim.h" |
---|
[6255] | 11 | |
---|
| 12 | class TargetingTurret : public Weapon |
---|
[9656] | 13 | { |
---|
| 14 | public: |
---|
| 15 | TargetingTurret(const TiXmlElement* root = NULL); |
---|
| 16 | virtual ~TargetingTurret (); |
---|
[6255] | 17 | |
---|
[9656] | 18 | virtual void loadParams(const TiXmlElement* root); |
---|
[6255] | 19 | |
---|
[9656] | 20 | virtual void activate(); |
---|
| 21 | virtual void deactivate(); |
---|
[6255] | 22 | |
---|
[9656] | 23 | virtual void tick(float dt); |
---|
| 24 | virtual void fire(); |
---|
[6255] | 25 | |
---|
[9656] | 26 | virtual void draw() const; |
---|
[6255] | 27 | |
---|
[9656] | 28 | void setTargetGroup(OM_LIST targetGroup) { this->target.setTargetGroup(targetGroup); }; |
---|
| 29 | const PNode* getLockedTarget() const { return lockedTarget; }; |
---|
[6255] | 30 | |
---|
[9656] | 31 | private: |
---|
| 32 | void init(); |
---|
| 33 | |
---|
| 34 | private: |
---|
| 35 | Aim target; |
---|
| 36 | PNode* lockedTarget; |
---|
| 37 | float lockedTime; |
---|
| 38 | float neededLockTime; |
---|
| 39 | }; |
---|
| 40 | |
---|
[6255] | 41 | #endif /* _TARGETING_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.