| 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 |   ObjectListDeclaration(SpaceTurret); | 
|---|
| 21 |  | 
|---|
| 22 | public: | 
|---|
| 23 |   SpaceTurret(const TiXmlElement* root = NULL); | 
|---|
| 24 |   virtual ~SpaceTurret(); | 
|---|
| 25 |  | 
|---|
| 26 |   virtual void loadParams(const TiXmlElement* root); | 
|---|
| 27 |   virtual void varChangeHandler( std::list< int > & id ); | 
|---|
| 28 |  | 
|---|
| 29 |  | 
|---|
| 30 |   void setWeaponLeft(const std::string& wLeft); | 
|---|
| 31 |   void setWeaponRight(const std::string& wRight); | 
|---|
| 32 |  | 
|---|
| 33 |   virtual void postSpawn (); | 
|---|
| 34 |   virtual void leftWorld (); | 
|---|
| 35 |  | 
|---|
| 36 |   virtual void destroy(WorldEntity* killer); | 
|---|
| 37 |  | 
|---|
| 38 |   virtual void draw() const; | 
|---|
| 39 |   virtual void tick(float time); | 
|---|
| 40 |  | 
|---|
| 41 | private: | 
|---|
| 42 |   void init(); | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|
| 45 | private: | 
|---|
| 46 |   PNode  weaponHolder[2]; | 
|---|
| 47 |   Weapon *left, *right; | 
|---|
| 48 |  | 
|---|
| 49 |   std::string wLeft; | 
|---|
| 50 |   std::string wRight; | 
|---|
| 51 |   int wLeftHandle; | 
|---|
| 52 |   int wRightHandle; | 
|---|
| 53 | }; | 
|---|
| 54 |  | 
|---|
| 55 | #endif /* _SPACE_TURRET_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.