#include "FleeingMovementGenerator.h"
◆ TimedFleeingMovementGenerator()
TimedFleeingMovementGenerator::TimedFleeingMovementGenerator |
( |
ObjectGuid |
fright, |
|
|
uint32 |
time |
|
) |
| |
|
inline |
50 :
Definition: FleeingMovementGenerator.h:25
TimeTracker i_totalFleeTime
Definition: FleeingMovementGenerator.h:59
◆ Finalize()
void TimedFleeingMovementGenerator::Finalize |
( |
Unit * |
owner | ) |
|
|
virtual |
◆ GetMovementGeneratorType()
◆ Update()
bool TimedFleeingMovementGenerator::Update |
( |
Unit * |
owner, |
|
|
uint32 |
time_diff |
|
) |
| |
|
virtual |
Reimplemented from MovementGeneratorMedium< T, D >.
253{
255 return false;
256
258 {
260 return true;
261 }
262
265 return false;
266
267
268
270}
@ 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:4141
bool IsAlive() const
Definition: Unit.h:1204
void StopMoving()
Definition: Unit.cpp:16606
bool HasUnitState(const uint32 f) const
Definition: Unit.h:673
Definition: MovementGenerator.h:58
bool Update(Unit *, uint32)
Definition: FleeingMovementGenerator.cpp:252
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 |