source:
orxonox.OLD/branches/proxy/src/world_entities/weapons/aiming_turret.h
@
9617
Last change on this file since 9617 was 9615, checked in by bensch, 18 years ago | |
---|---|
File size: 664 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" | |
[9615] | 10 | #include "aim.h" |
[5559] | 11 | /* FORWARD DECLARATION */ |
12 | ||
[5527] | 13 | class AimingTurret : public Weapon |
[9615] | 14 | { |
15 | public: | |
16 | AimingTurret (); | |
17 | AimingTurret(const TiXmlElement* root); | |
18 | virtual ~AimingTurret (); | |
[3618] | 19 | |
[9615] | 20 | virtual void loadParams(const TiXmlElement* root); |
[4973] | 21 | |
[9615] | 22 | void setTargetGroup(OM_LIST targetGroup) { this->target.setTargetGroup(targetGroup); }; |
[3618] | 23 | |
[9615] | 24 | virtual void activate(); |
25 | virtual void deactivate(); | |
[3618] | 26 | |
[9615] | 27 | virtual void tick(float dt); |
28 | virtual void fire(); | |
[8777] | 29 | |
[3752] | 30 | |
[9615] | 31 | virtual void draw() const; |
[5511] | 32 | |
[9615] | 33 | private: |
34 | void init(); | |
35 | ||
36 | private: | |
37 | Aim target; | |
38 | }; | |
39 | ||
[5527] | 40 | #endif /* _AIMING_TURRET_H */ |
Note: See TracBrowser
for help on using the repository browser.