TrinityCore
TimedFleeingMovementGenerator Class Reference

#include <FleeingMovementGenerator.h>

+ Inheritance diagram for TimedFleeingMovementGenerator:

Public Member Functions

 TimedFleeingMovementGenerator (ObjectGuid fleeTargetGUID, Milliseconds time)
 
bool Update (Unit *, uint32) override
 
void Finalize (Unit *, bool, bool) override
 
MovementGeneratorType GetMovementGeneratorType () const override
 
- Public Member Functions inherited from FleeingMovementGenerator
 FleeingMovementGenerator (ObjectGuid fleeTargetGUID)
 
MovementGeneratorType GetMovementGeneratorType () const override
 
void Initialize (Unit *owner) override
 
void Reset (Unit *owner) override
 
bool Update (Unit *owner, uint32 diff) override
 
void Deactivate (Unit *owner) override
 
void Finalize (Unit *owner, bool, bool) override
 
void UnitSpeedChanged () override
 
- Public Member Functions inherited from MovementGenerator
 MovementGenerator ()
 
 MovementGenerator (MovementGenerator const &)=delete
 
 MovementGenerator (MovementGenerator &&)=delete
 
MovementGeneratoroperator= (MovementGenerator const &)=delete
 
MovementGeneratoroperator= (MovementGenerator &&)=delete
 
virtual ~MovementGenerator ()
 
virtual void Initialize (Unit *owner)=0
 
virtual void Reset (Unit *owner)=0
 
virtual bool Update (Unit *owner, uint32 diff)=0
 
virtual void Deactivate (Unit *owner)=0
 
virtual void Finalize (Unit *owner, bool active, bool movementInform)=0
 
virtual MovementGeneratorType GetMovementGeneratorType () const =0
 
virtual void UnitSpeedChanged ()
 
virtual void Pause (uint32)
 
virtual void Resume (uint32)
 
virtual bool GetResetPosition (Unit *, float &, float &, float &)
 
void AddFlag (uint16 const flag)
 
bool HasFlag (uint16 const flag) const
 
void RemoveFlag (uint16 const flag)
 
virtual std::string GetDebugInfo () const
 

Private Attributes

TimeTracker _totalFleeTime
 

Additional Inherited Members

- Public Attributes inherited from MovementGenerator
uint8 Mode
 
uint8 Priority
 
uint16 Flags
 
uint32 BaseUnitState
 

Detailed Description

Definition at line 52 of file FleeingMovementGenerator.h.

Constructor & Destructor Documentation

◆ TimedFleeingMovementGenerator()

TimedFleeingMovementGenerator::TimedFleeingMovementGenerator ( ObjectGuid  fleeTargetGUID,
Milliseconds  time 
)
inlineexplicit

Definition at line 55 of file FleeingMovementGenerator.h.

Member Function Documentation

◆ Finalize()

void TimedFleeingMovementGenerator::Finalize ( Unit owner,
bool  active,
bool  movementInform 
)
overridevirtual

Reimplemented from FleeingMovementGenerator.

Definition at line 208 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetMovementGeneratorType()

MovementGeneratorType TimedFleeingMovementGenerator::GetMovementGeneratorType ( ) const
overridevirtual

Reimplemented from FleeingMovementGenerator.

Definition at line 232 of file FleeingMovementGenerator.cpp.

◆ Update()

bool TimedFleeingMovementGenerator::Update ( Unit owner,
uint32  diff 
)
overridevirtual

Reimplemented from FleeingMovementGenerator.

Definition at line 196 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _totalFleeTime

TimeTracker TimedFleeingMovementGenerator::_totalFleeTime
private

Definition at line 62 of file FleeingMovementGenerator.h.


The documentation for this class was generated from the following files: