Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

startet to implement swarming

File size: 636 bytes
Line 
1
2#ifndef _AI_SWARM_H
3#define _AI_SWARM_H
4
5#include "world_entity.h"
6#include "ai_module.h"
7
8class AISwarm{
9        public:
10                AISwarm(){}
11                ~AISwarm(){}
12                void process(float dt);
13                void addAI(AIModule* newMember);
14                void removeAI(AIModule* oldMember);
15                inline int getSwarmSize(){return swarmMembers.size();}
16                inline void setEnemyList(std::vector<WorldEntity*>* enemyList){this->enemyList=enemyList;}
17                inline void setDestination(Vector destination){this->destination=destination;}
18                Vector getPosition();
19        private:
20                Vector destination;
21                std::vector<WorldEntity*>* enemyList;
22                std::set<AIModule*> swarmMembers;
23};
24
25#endif /* _AI_SWARM_H */
Note: See TracBrowser for help on using the repository browser.