1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */ 2 3 #ifndef STATICMOVETYPE_H 4 #define STATICMOVETYPE_H 5 6 #include "MoveType.h" 7 8 class CStaticMoveType : public AMoveType 9 { CR_DECLARE(CStaticMoveType)10 CR_DECLARE(CStaticMoveType) 11 12 public: 13 CStaticMoveType(CUnit* unit) : AMoveType(unit) {} StartMoving(float3 pos,float goalRadius)14 void StartMoving(float3 pos, float goalRadius) {} StartMoving(float3 pos,float goalRadius,float speed)15 void StartMoving(float3 pos, float goalRadius, float speed) {} 16 void StopMoving(bool callScript = false, bool hardStop = false) {} 17 SetMaxSpeed(float speed)18 void SetMaxSpeed(float speed) { /* override AMoveType (our maxSpeed IS allowed to be 0) */ } KeepPointingTo(float3 pos,float distance,bool aggressive)19 void KeepPointingTo(float3 pos, float distance, bool aggressive) {} 20 Update()21 bool Update() { return false; } 22 void SlowUpdate(); 23 }; 24 25 #endif // STATICMOVETYPE_H 26