Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/ai/src/ai/movement_module.h @ 10177

Last change on this file since 10177 was 10177, checked in by tfahrni, 17 years ago
File size: 1000 bytes
RevLine 
[10029]1
2#ifndef _MOVEMENT_MODULE_H
3#define _MOVEMENT_MODULE_H
4
5#include "ai_module.h"
[10071]6#include "player.h"
7#include "playable.h"
[10112]8//#include "npcs/npc_test.h"
9class NPC2;
[10029]10
[10112]11
[10029]12class MovementModule : public AIModule{
[10112]13
[10135]14        public:
[10177]15                MovementModule();
[10138]16                inline MovementModule(NPC2* object){ this->myNPC=object; this->myWorldEntity=(WorldEntity*)object;}
17                virtual ~MovementModule(){}
[10135]18                virtual void process(float dt);
19
[10138]20                static void setDistanceToPlayer(float newValue);
21                static void setDistanceToNPC(float newValue);
22                static void setMaxAccleartion(float newValue);
[10177]23                static void setTestValue(float newValue);
24                static void setTestValue2(float newValue);
25
[10135]26        private:
27                Vector myMovement;
28                float myMaxAccleration;
29                float myMaxSpeed;
30
[10138]31                float getRadius(WorldEntity* object);
[10135]32
[10138]33                static float maxAccleration;
34                static float distanceToPlayer;
35                static float distanceToNPC;
[10177]36                static float testValue;
37                static float testValue2;
38
39                int tickCount;
40                int randomFreq;
41                Vector randomVector;
[10029]42};
43
44#endif /* _MOVEMENT_MODULE_H */
Note: See TracBrowser for help on using the repository browser.