Line | |
---|
1 | /*! |
---|
2 | * @file aiming_turret.h |
---|
3 | */ |
---|
4 | |
---|
5 | |
---|
6 | #ifndef _AIMING_TURRET_H |
---|
7 | #define _AIMING_TURRET_H |
---|
8 | |
---|
9 | #include "weapon.h" |
---|
10 | #include "aim.h" |
---|
11 | /* FORWARD DECLARATION */ |
---|
12 | |
---|
13 | class AimingTurret : public Weapon |
---|
14 | { |
---|
15 | ObjectListDeclaration(AimingTurret); |
---|
16 | |
---|
17 | public: |
---|
18 | AimingTurret (); |
---|
19 | AimingTurret(const TiXmlElement* root); |
---|
20 | virtual ~AimingTurret (); |
---|
21 | |
---|
22 | virtual void loadParams(const TiXmlElement* root); |
---|
23 | |
---|
24 | void setTargetGroup(OM_LIST targetGroup) { this->target.setTargetGroup(targetGroup); }; |
---|
25 | |
---|
26 | virtual void activate(); |
---|
27 | virtual void deactivate(); |
---|
28 | |
---|
29 | virtual void tick(float dt); |
---|
30 | virtual void fire(); |
---|
31 | |
---|
32 | |
---|
33 | virtual void draw() const; |
---|
34 | |
---|
35 | private: |
---|
36 | void init(); |
---|
37 | |
---|
38 | private: |
---|
39 | Aim target; |
---|
40 | }; |
---|
41 | |
---|
42 | #endif /* _AIMING_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.