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
RevLine 
[10135]1
2#ifndef _AI_SWARM_H
3#define _AI_SWARM_H
4
[10138]5#include "world_entity.h"
6#include "ai_module.h"
[10135]7
8class AISwarm{
9        public:
[10137]10                AISwarm(){}
11                ~AISwarm(){}
[10135]12                void process(float dt);
[10137]13                void addAI(AIModule* newMember);
14                void removeAI(AIModule* oldMember);
[10138]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();
[10135]19        private:
[10138]20                Vector destination;
21                std::vector<WorldEntity*>* enemyList;
[10137]22                std::set<AIModule*> swarmMembers;
[10135]23};
24
25#endif /* _AI_SWARM_H */
Note: See TracBrowser for help on using the repository browser.