Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10263 in orxonox.OLD for branches/ai/src/world_entities/npcs/npc.h


Ignore:
Timestamp:
Jan 17, 2007, 4:27:43 PM (18 years ago)
Author:
patrick
Message:

ai is now handeled in npc, weapon manager added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/world_entities/npcs/npc.h

    r10138 r10263  
    44
    55#include "world_entity.h"
     6#include "ai_module.h"
     7#include "world_entities/weapons/weapon_manager.h"
    68
    79class AI;
    810
    9 class NPC : public WorldEntity {
     11class NPC : public WorldEntity
     12{
    1013  ObjectListDeclaration(NPC);
    11  public:
    12    NPC (const TiXmlElement* root);
     14
     15public:
     16  NPC(const TiXmlElement* root = NULL);
    1317  virtual ~NPC ();
    1418
    1519  virtual void loadParams(const TiXmlElement* root = NULL);
    1620
    17   void addAI(AI* ai);
     21  virtual void tick(float dt);
     22  inline int getTeam()  { return teamNumber; }
     23
     24
     25private:
     26  inline void setTeamNumber(int number) { teamNumber=number; }
     27  inline void setSwarmNumber(int number) { swarmNumber=number; }
    1828
    1929
    2030 private:
    2131
     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;
    2240};
    2341
Note: See TracChangeset for help on using the changeset viewer.