Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/ai/ai_team.h @ 10769

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

merged branche ai to trunk

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