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