19 #ifndef TRINITY_TARGETEDMOVEMENTGENERATOR_H
20 #define TRINITY_TARGETEDMOVEMENTGENERATOR_H
37 template<
class T,
typename D>
Definition: TargetedMovementGenerator.h:38
FollowMovementGenerator(Unit *target)
Definition: TargetedMovementGenerator.h:94
TargetedMovementGeneratorMedium(Unit *target, float offset, float angle)
Definition: TargetedMovementGenerator.h:41
bool EnableWalking() const
Definition: TargetedMovementGenerator.h:85
Definition: TargetedMovementGenerator.h:28
void MovementInform(T *)
Definition: TargetedMovementGenerator.cpp:303
Definition: PathGenerator.h:44
~FollowMovementGenerator()
Definition: TargetedMovementGenerator.h:98
bool IsReachable() const
Definition: TargetedMovementGenerator.h:54
Definition: TargetedMovementGenerator.h:67
FollowerReference i_target
Definition: TargetedMovementGenerator.h:34
arena_t NULL
Definition: jemalloc_internal.h:624
void stopFollowing()
Definition: TargetedMovementGenerator.h:32
#define false
Definition: CascPort.h:18
bool _lostTarget(T *u) const
Definition: TargetedMovementGenerator.h:86
ChaseMovementGenerator(Unit *target, float offset, float angle)
Definition: TargetedMovementGenerator.h:72
Definition: FollowerReference.h:27
void MovementInform(T *)
Definition: TargetedMovementGenerator.cpp:231
static void _clearUnitStateMove(T *u)
Definition: TargetedMovementGenerator.h:83
float i_offset
Definition: TargetedMovementGenerator.h:60
bool _lostTarget(T *) const
Definition: TargetedMovementGenerator.h:110
MovementGeneratorType GetMovementGeneratorType() const override
Definition: TargetedMovementGenerator.h:76
bool i_targetReached
Definition: TargetedMovementGenerator.h:63
void _updateSpeed(T *owner)
void DoReset(T *)
Definition: TargetedMovementGenerator.cpp:297
void DoReset(T *)
Definition: TargetedMovementGenerator.cpp:225
static void _addUnitStateMove(T *u)
Definition: TargetedMovementGenerator.h:84
float i_angle
Definition: TargetedMovementGenerator.h:61
~TargetedMovementGeneratorMedium()
Definition: TargetedMovementGenerator.h:47
MovementGeneratorType GetMovementGeneratorType() const override
Definition: TargetedMovementGenerator.h:100
uint32_t uint32
Definition: Define.h:150
void _reachTarget(T *)
Definition: TargetedMovementGenerator.h:111
Definition: PathGenerator.h:52
Definition: MovementGenerator.h:51
FollowMovementGenerator(Unit *target, float offset, float angle)
Definition: TargetedMovementGenerator.h:96
ChaseMovementGenerator(Unit *target)
Definition: TargetedMovementGenerator.h:70
void link(TO *toObj, FROM *fromObj)
Definition: Reference.h:46
Unit * GetTarget() const
Definition: TargetedMovementGenerator.h:51
PathGenerator * i_path
Definition: TargetedMovementGenerator.h:58
Definition: TargetedMovementGenerator.h:91
void DoFinalize(T *)
Definition: TargetedMovementGenerator.cpp:290
TimeTrackerSmall i_recheckDistance
Definition: TargetedMovementGenerator.h:59
void unitSpeedChanged() override
Definition: TargetedMovementGenerator.h:53
static void _addUnitStateMove(T *u)
Definition: TargetedMovementGenerator.h:108
bool DoUpdate(T *, uint32)
Definition: TargetedMovementGenerator.cpp:124
void _reachTarget(T *)
Definition: TargetedMovementGenerator.cpp:197
static void _clearUnitStateMove(T *u)
Definition: TargetedMovementGenerator.h:107
MovementGeneratorType
Definition: MotionMaster.h:35
void DoFinalize(T *)
Definition: TargetedMovementGenerator.cpp:219
TargetedMovementGeneratorBase(Unit *target)
Definition: TargetedMovementGenerator.h:31
Definition: MotionMaster.h:43
PathType GetPathType() const
Definition: PathGenerator.h:73
~ChaseMovementGenerator()
Definition: TargetedMovementGenerator.h:74
TO * getTarget() const
Definition: Reference.h:94
bool EnableWalking() const
Definition: MotionMaster.h:52
void _setTargetLocation(T *owner, bool updateDestination)
Definition: TargetedMovementGenerator.cpp:31
bool i_recalculateTravel
Definition: TargetedMovementGenerator.h:62