TrinityCore
Loading...
Searching...
No Matches
TimedFleeingMovementGenerator Class Reference

#include <FleeingMovementGenerator.h>

+ Inheritance diagram for TimedFleeingMovementGenerator:

Public Member Functions

 TimedFleeingMovementGenerator (ObjectGuid fleeTargetGUID, Milliseconds time, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
 
bool Update (Unit *, uint32) override
 
void Finalize (Unit *, bool, bool) override
 
MovementGeneratorType GetMovementGeneratorType () const override
 
- Public Member Functions inherited from FleeingMovementGenerator
 FleeingMovementGenerator (ObjectGuid fleeTargetGUID, Scripting::v2::ActionResultSetter< MovementStopReason > &&scriptResult={})
 
 FleeingMovementGenerator (FleeingMovementGenerator const &)=delete
 
 FleeingMovementGenerator (FleeingMovementGenerator &&)=delete
 
FleeingMovementGeneratoroperator= (FleeingMovementGenerator const &)=delete
 
FleeingMovementGeneratoroperator= (FleeingMovementGenerator &&)=delete
 
 ~FleeingMovementGenerator ()
 
void Initialize (Unit *owner) override
 
void Reset (Unit *owner) override
 
void Deactivate (Unit *owner) 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 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
 
Scripting::v2::ActionResultSetter< MovementStopReasonScriptResult
 
- Protected Member Functions inherited from MovementGenerator
void SetScriptResult (MovementStopReason reason)
 

Detailed Description

Definition at line 58 of file FleeingMovementGenerator.h.

Constructor & Destructor Documentation

◆ TimedFleeingMovementGenerator()

TimedFleeingMovementGenerator::TimedFleeingMovementGenerator ( ObjectGuid  fleeTargetGUID,
Milliseconds  time,
Scripting::v2::ActionResultSetter< MovementStopReason > &&  scriptResult = {} 
)
inlineexplicit

Definition at line 61 of file FleeingMovementGenerator.h.

Member Function Documentation

◆ Finalize()

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

Reimplemented from FleeingMovementGenerator.

Definition at line 215 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetMovementGeneratorType()

MovementGeneratorType TimedFleeingMovementGenerator::GetMovementGeneratorType ( ) const
overridevirtual

Reimplemented from FleeingMovementGenerator.

Definition at line 241 of file FleeingMovementGenerator.cpp.

◆ Update()

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

Reimplemented from FleeingMovementGenerator.

Definition at line 203 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _totalFleeTime

TimeTracker TimedFleeingMovementGenerator::_totalFleeTime
private

Definition at line 70 of file FleeingMovementGenerator.h.


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