Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/ai/ai_swarm.h @ 10557

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

merged branche ai to trunk

File size: 613 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#include "swarm_module.h"
8
9
10class AISwarm : public SwarmModule{
11        public:
12                AISwarm();
13                virtual ~AISwarm(){}
14                virtual void process(float dt);
15
16                inline void setDestination(Vector destination){this->destination=destination;}
17                inline void setTarget(WorldEntity* target){this->target=target;}
18
19                enum statusType{ATTACKING,MOVING,WAITING};
20
21        private:
22                Vector destination;
23                Vector movement;
24                WorldEntity* target;
25                statusType status;
26
27                int tickCount;
28                int randomFreq;
29                Vector randomVector;
30};
31
32#endif /* _AI_SWARM_H */
Note: See TracBrowser for help on using the repository browser.