Rev | Line | |
---|
[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" |
---|
| 9 | class NPC2; |
---|
[10029] | 10 | |
---|
[10112] | 11 | |
---|
[10029] | 12 | class MovementModule : public AIModule{ |
---|
[10112] | 13 | |
---|
[10135] | 14 | public: |
---|
| 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); |
---|
[10135] | 23 | // |
---|
| 24 | private: |
---|
[10138] | 25 | |
---|
[10135] | 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 | |
---|
[10138] | 36 | |
---|
[10135] | 37 | Vector myMovement; |
---|
| 38 | float myMaxAccleration; |
---|
| 39 | float myMaxSpeed; |
---|
| 40 | |
---|
[10138] | 41 | float getRadius(WorldEntity* object); |
---|
[10135] | 42 | |
---|
[10138] | 43 | static float maxAccleration; |
---|
| 44 | static float distanceToPlayer; |
---|
| 45 | static float distanceToNPC; |
---|
[10029] | 46 | }; |
---|
| 47 | |
---|
| 48 | #endif /* _MOVEMENT_MODULE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.