Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

merged branche ai to trunk

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