Last change
on this file since 7598 was
7102,
checked in by bensch, 19 years ago
|
power ups can only be picked up once
|
File size:
735 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file ground_turret.h |
---|
3 | * @brief description |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GROUND_TURRET_H |
---|
7 | #define _GROUND_TURRET_H |
---|
8 | |
---|
9 | #include "npcs/npc.h" |
---|
10 | |
---|
11 | class Weapon; |
---|
12 | |
---|
13 | //! A Class to ... |
---|
14 | class GroundTurret : public NPC |
---|
15 | { |
---|
16 | |
---|
17 | public: |
---|
18 | GroundTurret(const TiXmlElement* root = NULL); |
---|
19 | virtual ~GroundTurret(); |
---|
20 | |
---|
21 | void init(); |
---|
22 | virtual void loadParams(const TiXmlElement* root); |
---|
23 | |
---|
24 | virtual void postSpawn (); |
---|
25 | virtual void leftWorld (); |
---|
26 | |
---|
27 | virtual void destroy(); |
---|
28 | |
---|
29 | virtual void draw() const; |
---|
30 | virtual void tick(float time); |
---|
31 | |
---|
32 | virtual int writeBytes(const byte* data, int length, int sender); |
---|
33 | virtual int readBytes(byte* data, int maxLength, int * reciever); |
---|
34 | |
---|
35 | private: |
---|
36 | PNode weaponHolder[2]; |
---|
37 | Weapon *left, *right; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif /* _GROUND_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.