Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/cleanup/src/ai/ai_team.h @ 10673

Last change on this file since 10673 was 10376, checked in by patrick, 18 years ago

merged branche ai to trunk

File size: 662 bytes
Line 
1
2#ifndef _AI_TEAM_H
3#define _AI_TEAM_H
4
5#include "swarm_module.h"
6
7class AITeam{
8 public:
9        ~AITeam(){}
10        AITeam(){}
11        std::vector<WorldEntity*>* getEnemyList();
12        void process(float dt);
13        void addAI(int swarmNumber, WorldEntity* npc, float maxSpeed, float attackDistance);
14        void removeAI(int swarmNumber, WorldEntity* npc);
15        inline int getTeamSize(){ return swarms.size(); }
16        inline void setEnemyList(std::vector<WorldEntity*>* enemyList){this->enemyList=enemyList;}
17 private:
18        std::vector<WorldEntity*>* enemyList;
19        std::map<int,SwarmModule*> swarms;
20        void changeSwarmModule(std::map<int,SwarmModule*>::iterator it,SwarmModule* newAI);
21};
22
23#endif /* _AI_TEAM_H */
Note: See TracBrowser for help on using the repository browser.