Last change
on this file since 9701 was
9656,
checked in by bensch, 18 years ago
|
orxonox/trunk: merged the proxy bache back with no conflicts
|
File size:
894 bytes
|
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 | #include <string> |
---|
12 | #include <list> |
---|
13 | |
---|
14 | |
---|
15 | class Weapon; |
---|
16 | |
---|
17 | //! A Class to ... |
---|
18 | class SpaceTurret : public NPC |
---|
19 | { |
---|
20 | |
---|
21 | public: |
---|
22 | SpaceTurret(const TiXmlElement* root = NULL); |
---|
23 | virtual ~SpaceTurret(); |
---|
24 | |
---|
25 | virtual void loadParams(const TiXmlElement* root); |
---|
26 | virtual void varChangeHandler( std::list< int > & id ); |
---|
27 | |
---|
28 | |
---|
29 | void setWeaponLeft(const std::string& wLeft); |
---|
30 | void setWeaponRight(const std::string& wRight); |
---|
31 | |
---|
32 | virtual void postSpawn (); |
---|
33 | virtual void leftWorld (); |
---|
34 | |
---|
35 | virtual void destroy(WorldEntity* killer); |
---|
36 | |
---|
37 | virtual void draw() const; |
---|
38 | virtual void tick(float time); |
---|
39 | |
---|
40 | private: |
---|
41 | void init(); |
---|
42 | |
---|
43 | |
---|
44 | private: |
---|
45 | PNode weaponHolder[2]; |
---|
46 | Weapon *left, *right; |
---|
47 | |
---|
48 | std::string wLeft; |
---|
49 | std::string wRight; |
---|
50 | int wLeftHandle; |
---|
51 | int wRightHandle; |
---|
52 | }; |
---|
53 | |
---|
54 | #endif /* _SPACE_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.