source:
orxonox.OLD/trunk/src/world_entities/weapons/aiming_turret.h
| Last change on this file was 9869, checked in by bensch, 19 years ago | |
|---|---|
| File size: 704 bytes | |
| Rev | Line | |
|---|---|---|
| [4827] | 1 | /*! |
| [5527] | 2 | * @file aiming_turret.h |
| [3618] | 3 | */ |
| 4 | ||
| 5 | ||
| [5527] | 6 | #ifndef _AIMING_TURRET_H |
| 7 | #define _AIMING_TURRET_H | |
| [3618] | 8 | |
| 9 | #include "weapon.h" | |
| [9656] | 10 | #include "aim.h" |
| [5559] | 11 | /* FORWARD DECLARATION */ |
| 12 | ||
| [5527] | 13 | class AimingTurret : public Weapon |
| [9656] | 14 | { |
| [9869] | 15 | ObjectListDeclaration(AimingTurret); |
| 16 | ||
| [9656] | 17 | public: |
| 18 | AimingTurret (); | |
| 19 | AimingTurret(const TiXmlElement* root); | |
| 20 | virtual ~AimingTurret (); | |
| [3618] | 21 | |
| [9656] | 22 | virtual void loadParams(const TiXmlElement* root); |
| [4973] | 23 | |
| [9656] | 24 | void setTargetGroup(OM_LIST targetGroup) { this->target.setTargetGroup(targetGroup); }; |
| [3618] | 25 | |
| [9656] | 26 | virtual void activate(); |
| 27 | virtual void deactivate(); | |
| [3618] | 28 | |
| [9656] | 29 | virtual void tick(float dt); |
| 30 | virtual void fire(); | |
| [8777] | 31 | |
| [3752] | 32 | |
| [9656] | 33 | virtual void draw() const; |
| [5511] | 34 | |
| [9656] | 35 | private: |
| 36 | void init(); | |
| 37 | ||
| 38 | private: | |
| 39 | Aim target; | |
| 40 | }; | |
| 41 | ||
| [5527] | 42 | #endif /* _AIMING_TURRET_H */ |
Note: See TracBrowser
for help on using the repository browser.










