Last change
on this file since 9649 was
9615,
checked in by bensch, 18 years ago
|
AimingTurret is better suited for network, as the projectiles are not connected to anything.
also it makes the game a little bit easier, and more fun as the turrets move around
|
File size:
664 bytes
|
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 | public: |
---|
16 | AimingTurret (); |
---|
17 | AimingTurret(const TiXmlElement* root); |
---|
18 | virtual ~AimingTurret (); |
---|
19 | |
---|
20 | virtual void loadParams(const TiXmlElement* root); |
---|
21 | |
---|
22 | void setTargetGroup(OM_LIST targetGroup) { this->target.setTargetGroup(targetGroup); }; |
---|
23 | |
---|
24 | virtual void activate(); |
---|
25 | virtual void deactivate(); |
---|
26 | |
---|
27 | virtual void tick(float dt); |
---|
28 | virtual void fire(); |
---|
29 | |
---|
30 | |
---|
31 | virtual void draw() const; |
---|
32 | |
---|
33 | private: |
---|
34 | void init(); |
---|
35 | |
---|
36 | private: |
---|
37 | Aim target; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif /* _AIMING_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.