Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10177 was 10177, checked in by tfahrni, 17 years ago
File size: 1000 bytes
RevLine 
[10029]1
2#ifndef _AI_MODULE_H
3#define _AI_MODULE_H
[10138]4#include "world_entity.h"
[10112]5class NPC2;
[10029]6
[10135]7class AIModule {
[10029]8 public:
[10138]9   AIModule(){}
10   virtual ~AIModule(){}
11   virtual void process(float dt){}
[10177]12
[10045]13   void setDifficulty(int newDifficulty);
[10138]14        inline void setEnemyList(std::vector<WorldEntity*>* enemyList){this->enemyList=enemyList;}
15        inline Vector getPosition(){return myWorldEntity->getAbsCoor();}
[10177]16        inline Vector getMovement(){return movement;}
[10138]17        inline void setDestination(Vector destination){this->destination=destination;}
[10158]18        inline void setDestinationMovement(Vector destinationMovement){this->destinationMovement=destinationMovement;}
[10177]19        inline void setWeight(int weight){this->weight=weight;}
20        inline void setTarget(WorldEntity* target){this->target=target;}
21
[10061]22 protected:
[10112]23   NPC2* myNPC;
[10138]24        WorldEntity* myWorldEntity;
25        std::vector<WorldEntity*>* enemyList;
[10177]26
[10138]27        Vector destination;
[10158]28        Vector destinationMovement;
29        Vector movement;
[10177]30
31        float weight;
32        float speedMax;
33
34        WorldEntity* target;
[10029]35};
36
37#endif /* _AI_MODULE_H */
Note: See TracBrowser for help on using the repository browser.