mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 16:37:03 +00:00
[9542] Make MovementGenerator::GetMovementGeneratorType() const
This commit is contained in:
parent
66f0e6662f
commit
531b3b669e
12 changed files with 36 additions and 35 deletions
|
|
@ -40,7 +40,7 @@ class MANGOS_DLL_SPEC PointMovementGenerator
|
|||
|
||||
void MovementInform(T &);
|
||||
|
||||
MovementGeneratorType GetMovementGeneratorType() { return POINT_MOTION_TYPE; }
|
||||
MovementGeneratorType GetMovementGeneratorType() const { return POINT_MOTION_TYPE; }
|
||||
|
||||
bool GetDestination(float& x, float& y, float& z) const { x=i_x; y=i_y; z=i_z; return true; }
|
||||
private:
|
||||
|
|
@ -57,7 +57,7 @@ class MANGOS_DLL_SPEC AssistanceMovementGenerator
|
|||
AssistanceMovementGenerator(float _x, float _y, float _z) :
|
||||
PointMovementGenerator<Creature>(0, _x, _y, _z) {}
|
||||
|
||||
MovementGeneratorType GetMovementGeneratorType() { return ASSISTANCE_MOTION_TYPE; }
|
||||
MovementGeneratorType GetMovementGeneratorType() const { return ASSISTANCE_MOTION_TYPE; }
|
||||
void Finalize(Unit &);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue