Changeset 10263 in orxonox.OLD for branches/ai/src/world_entities/npcs/npc.h
- Timestamp:
- Jan 17, 2007, 4:27:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/world_entities/npcs/npc.h
r10138 r10263 4 4 5 5 #include "world_entity.h" 6 #include "ai_module.h" 7 #include "world_entities/weapons/weapon_manager.h" 6 8 7 9 class AI; 8 10 9 class NPC : public WorldEntity { 11 class NPC : public WorldEntity 12 { 10 13 ObjectListDeclaration(NPC); 11 public: 12 NPC (const TiXmlElement* root); 14 15 public: 16 NPC(const TiXmlElement* root = NULL); 13 17 virtual ~NPC (); 14 18 15 19 virtual void loadParams(const TiXmlElement* root = NULL); 16 20 17 void addAI(AI* ai); 21 virtual void tick(float dt); 22 inline int getTeam() { return teamNumber; } 23 24 25 private: 26 inline void setTeamNumber(int number) { teamNumber=number; } 27 inline void setSwarmNumber(int number) { swarmNumber=number; } 18 28 19 29 20 30 private: 21 31 32 int teamNumber; //!< number of the team 33 int swarmNumber; //!< number of the swarm 34 int difficulty; //!< difficulty 35 36 WeaponManager weaponMan; //!< weapon manager 37 bool bFire; //!< fire 38 39 AIModule* aiModule; 22 40 }; 23 41
Note: See TracChangeset
for help on using the changeset viewer.