Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/ai/src/ai/ai_module.h @ 10138

Last change on this file since 10138 was 10138, checked in by tfahrni, 17 years ago

startet to implement swarming

File size: 616 bytes
Line 
1
2#ifndef _AI_MODULE_H
3#define _AI_MODULE_H
4#include "world_entity.h"
5class NPC2;
6
7class AIModule {
8 public:
9   AIModule(){}
10   virtual ~AIModule(){}
11   virtual void process(float dt){}
12       
13   void setDifficulty(int newDifficulty);
14        inline void setEnemyList(std::vector<WorldEntity*>* enemyList){this->enemyList=enemyList;}
15        inline Vector getPosition(){return myWorldEntity->getAbsCoor();}
16        inline void setDestination(Vector destination){this->destination=destination;}
17       
18 protected:
19   NPC2* myNPC;
20        WorldEntity* myWorldEntity;
21        std::vector<WorldEntity*>* enemyList;
22        Vector destination;
23};
24
25#endif /* _AI_MODULE_H */
Note: See TracBrowser for help on using the repository browser.