#include "FleeingMovementGenerator.h"
◆ TimedFleeingMovementGenerator()
TimedFleeingMovementGenerator::TimedFleeingMovementGenerator |
( |
ObjectGuid |
fright, |
|
|
uint32 |
time |
|
) |
| |
|
inline |
52 :
Definition: FleeingMovementGenerator.h:27
TimeTracker i_totalFleeTime
Definition: FleeingMovementGenerator.h:61
◆ Finalize()
void TimedFleeingMovementGenerator::Finalize |
( |
Unit * |
owner | ) |
|
|
virtual |
◆ GetMovementGeneratorType()
◆ Update()
bool TimedFleeingMovementGenerator::Update |
( |
Unit * |
owner, |
|
|
uint32 |
time_diff |
|
) |
| |
|
virtual |
Reimplemented from MovementGeneratorMedium< T, D >.
252{
254 return false;
255
257 {
259 return true;
260 }
261
264 return false;
265
266
267
269}
@ UNIT_STATE_NOT_MOVE
Definition: UnitDefines.h:197
void Update(time_t diff)
Definition: Timer.h:207
bool Passed() const
Definition: Timer.h:212
virtual bool IsMovementPreventedByCasting() const
Definition: Unit.cpp:4159
bool IsAlive() const
Definition: Unit.h:1654
void StopMoving()
Definition: Unit.cpp:16650
bool HasUnitState(const uint32 f) const
Definition: Unit.h:701
Definition: MovementGenerator.h:56
bool Update(Unit *, uint32)
Definition: FleeingMovementGenerator.cpp:251
References Unit::HasUnitState(), i_totalFleeTime, Unit::IsAlive(), Unit::IsMovementPreventedByCasting(), TimeTracker::Passed(), Unit::StopMoving(), UNIT_STATE_NOT_MOVE, TimeTracker::Update(), and Update().
Referenced by Update().
◆ i_totalFleeTime
TimeTracker TimedFleeingMovementGenerator::i_totalFleeTime |
|
private |