diff options
Diffstat (limited to 'src/game/RandomMovementGenerator.h')
-rw-r--r-- | src/game/RandomMovementGenerator.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/game/RandomMovementGenerator.h b/src/game/RandomMovementGenerator.h index dd6e3a48283..a88b227d17f 100644 --- a/src/game/RandomMovementGenerator.h +++ b/src/game/RandomMovementGenerator.h @@ -25,17 +25,17 @@ #include "DestinationHolder.h" #include "Traveller.h" - template<class T> class TRINITY_DLL_SPEC RandomMovementGenerator : public MovementGeneratorMedium< T, RandomMovementGenerator<T> > { public: - RandomMovementGenerator() : i_nextMoveTime(0) {} - - void _setRandomLocation(T &); + // Wander dist is related on db spawn dist. So what if we wanna set eandom movement on summoned creature?! + RandomMovementGenerator(float spawn_dist = 0.0f) : i_nextMoveTime(0), wander_distance(spawn_dist) {} + + void _setRandomLocation(T &); void Initialize(T &); - void Finalize(T &) {} + void Finalize(T &); void Reset(T &); bool Update(T &, const uint32 &); bool GetDestination(float &x, float &y, float &z) const; @@ -48,6 +48,7 @@ class TRINITY_DLL_SPEC RandomMovementGenerator TimeTrackerSmall i_nextMoveTime; DestinationHolder< Traveller<T> > i_destinationHolder; - uint32 i_nextMove; + float wander_distance; + uint32 i_nextMove; }; #endif |