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" |
---|
9 | class NPC2; |
---|
10 | |
---|
11 | |
---|
12 | class MovementModule : public AIModule{ |
---|
13 | |
---|
14 | public: |
---|
15 | MovementModule() {} |
---|
16 | inline MovementModule(NPC2* object){ this->myNPC=object; this->myWorldEntity=(WorldEntity*)object;} |
---|
17 | virtual ~MovementModule(){} |
---|
18 | virtual void process(float dt); |
---|
19 | |
---|
20 | static void setDistanceToPlayer(float newValue); |
---|
21 | static void setDistanceToNPC(float newValue); |
---|
22 | static void setMaxAccleartion(float newValue); |
---|
23 | // |
---|
24 | private: |
---|
25 | |
---|
26 | // static std::vector<NPC2*> npcList; |
---|
27 | // static std::vector<Vector> npcPosition; |
---|
28 | // static std::vector<float> npcRadius; |
---|
29 | // static std::vector<int> npcSwarm; |
---|
30 | // static std::vector<int> npcTeam; |
---|
31 | // |
---|
32 | // static Vector playerPosition; |
---|
33 | // static Vector playerMovement; |
---|
34 | // static float playerRadius; |
---|
35 | |
---|
36 | |
---|
37 | Vector myMovement; |
---|
38 | float myMaxAccleration; |
---|
39 | float myMaxSpeed; |
---|
40 | |
---|
41 | float getRadius(WorldEntity* object); |
---|
42 | |
---|
43 | static float maxAccleration; |
---|
44 | static float distanceToPlayer; |
---|
45 | static float distanceToNPC; |
---|
46 | }; |
---|
47 | |
---|
48 | #endif /* _MOVEMENT_MODULE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.