Last change
on this file since 9704 was
9656,
checked in by bensch, 18 years ago
|
orxonox/trunk: merged the proxy bache back with no conflicts
|
File size:
871 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file network_turret.h |
---|
3 | * @brief description |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _NETWORK_TURRET_H |
---|
7 | #define _NETWORK_TURRET_H |
---|
8 | |
---|
9 | #include "npcs/npc.h" |
---|
10 | |
---|
11 | class AimingTurret; |
---|
12 | |
---|
13 | //! A Class to ... |
---|
14 | class NetworkTurret : public NPC |
---|
15 | { |
---|
16 | |
---|
17 | public: |
---|
18 | NetworkTurret(const TiXmlElement* root = NULL); |
---|
19 | virtual ~NetworkTurret(); |
---|
20 | |
---|
21 | virtual void loadParams(const TiXmlElement* root); |
---|
22 | |
---|
23 | virtual void postSpawn (); |
---|
24 | virtual void leftWorld (); |
---|
25 | |
---|
26 | |
---|
27 | virtual void destroy(WorldEntity* killer); |
---|
28 | |
---|
29 | virtual void draw() const; |
---|
30 | virtual void tick(float time); |
---|
31 | |
---|
32 | |
---|
33 | void setTargetGroup(int targetGroup); |
---|
34 | void setTargetGroupS(const std::string& targetGroup); |
---|
35 | |
---|
36 | virtual void varChangeHandler( std::list<int> & id ); |
---|
37 | |
---|
38 | |
---|
39 | private: |
---|
40 | void init(); |
---|
41 | |
---|
42 | private: |
---|
43 | PNode weaponHolder; |
---|
44 | AimingTurret *weapon; |
---|
45 | |
---|
46 | int targetGroup; |
---|
47 | int targetGroup_write; |
---|
48 | |
---|
49 | int targetGroup_handle; |
---|
50 | }; |
---|
51 | |
---|
52 | #endif /* _NETWORK_TURRET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.