Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

many AI changes but nothing new

File size: 1.3 KB
Line 
1
2#ifndef _MOVEMENT_MODULE_H
3#define _MOVEMENT_MODULE_H
4
5#include "ai_module.h"
6#include "player.h"
7#include "playable.h"
8//#include "npcs/npc_test.h"
9class NPC2;
10
11
12class MovementModule : public AIModule{
13       
14 public:
15   MovementModule() {}
16   MovementModule(NPC2* object);
17   virtual ~MovementModule();
18   virtual void process();
19   virtual void process(float dt);
20
21   static void setDistanceToPlayer(float newValue);
22   static void setDistanceToNPC(float newValue);
23   static void setMaxAccleartion(float newValue);
24   
25 private:
26        void collectInformation(float dt);
27       
28       
29        static std::vector<Vector>      hidingPoint;
30        static std::vector<float>       hidingPointSize;
31       
32        static std::vector<NPC2*> npcList;
33        static std::vector<Vector> npcPosition;
34        static std::vector<float> npcRadius;
35        static std::vector<int> npcSwarm;
36        static std::vector<int> npcTeam;
37       
38        static Vector playerPosition;
39        static Vector playerMovement;
40        static float playerRadius;
41       
42        static std::vector<Vector> swarmCenter;
43        static std::vector<int> swarmMemberCount;
44       
45        Vector myMovement;
46        float myMaxAccleration;
47        float myMaxSpeed;
48       
49       
50        float getRadius(WorldEntity* object);
51        static float aa;
52        float oldDT;
53       
54        static float maxAccleration;
55        static float distanceToPlayer;
56        static float distanceToNPC;
57};
58
59#endif /* _MOVEMENT_MODULE_H */
Note: See TracBrowser for help on using the repository browser.