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