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