| Rev | Line |  | 
|---|
| [10227] | 1 |  | 
|---|
|  | 2 | #ifndef _ATTACK_MODULE_H | 
|---|
|  | 3 | #define _ATTACK_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 AttackModule : public AIModule{ | 
|---|
|  | 13 |  | 
|---|
|  | 14 | public: | 
|---|
|  | 15 | AttackModule(); | 
|---|
|  | 16 | virtual ~AttackModule(){} | 
|---|
|  | 17 | virtual void process(float dt); | 
|---|
|  | 18 |  | 
|---|
|  | 19 | static void setDistanceToPlayer(float newValue); | 
|---|
|  | 20 | static void setDistanceToNPC(float newValue); | 
|---|
|  | 21 | static void setMaxAccleartion(float newValue); | 
|---|
|  | 22 | static void setTestValue(float newValue); | 
|---|
|  | 23 | static void setTestValue2(float newValue); | 
|---|
|  | 24 |  | 
|---|
|  | 25 | private: | 
|---|
|  | 26 | Vector myATTACK; | 
|---|
|  | 27 | float myMaxAccleration; | 
|---|
|  | 28 | float myMaxSpeed; | 
|---|
|  | 29 |  | 
|---|
|  | 30 | static float maxAccleration; | 
|---|
|  | 31 | static float distanceToPlayer; | 
|---|
|  | 32 | static float distanceToNPC; | 
|---|
|  | 33 | static float testValue; | 
|---|
|  | 34 | static float testValue2; | 
|---|
|  | 35 |  | 
|---|
|  | 36 | int tickCount; | 
|---|
|  | 37 | int randomFreq; | 
|---|
| [10275] | 38 | float fireTimeout; | 
|---|
| [10227] | 39 | Vector randomVector; | 
|---|
|  | 40 | }; | 
|---|
|  | 41 |  | 
|---|
|  | 42 | #endif /* _ATTACK_MODULE_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.