Line | |
---|
1 | /*! |
---|
2 | * @file space_turret.h |
---|
3 | * @brief description |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _SPACE_TURRET_H |
---|
7 | #define _SPACE_TURRET_H |
---|
8 | |
---|
9 | #include "npcs/npc.h" |
---|
10 | |
---|
11 | class Weapon; |
---|
12 | |
---|
13 | //! A Class to ... |
---|
14 | class SpaceTurret : public NPC |
---|
15 | { |
---|
16 | |
---|
17 | public: |
---|
18 | SpaceTurret(const TiXmlElement* root = NULL); |
---|
19 | virtual ~SpaceTurret(); |
---|
20 | |
---|
21 | virtual void loadParams(const TiXmlElement* root); |
---|
22 | |
---|
23 | virtual void postSpawn (); |
---|
24 | virtual void leftWorld (); |
---|
25 | |
---|
26 | virtual void destroy(WorldEntity* killer); |
---|
27 | |
---|
28 | virtual void draw() const; |
---|
29 | virtual void tick(float time); |
---|
30 | |
---|
31 | private: |
---|
32 | void init(); |
---|
33 | |
---|
34 | |
---|
35 | private: |
---|
36 | PNode weaponHolder[2]; |
---|
37 | Weapon *left, *right; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif /* _SPACE_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.