TrinityCore
FleeingMovementGenerator Class Reference

#include <FleeingMovementGenerator.h>

+ Inheritance diagram for FleeingMovementGenerator:

Public Member Functions

 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 Member Functions

void SetTargetLocation (Unit *owner)
 
void GetPoint (Unit *owner, Position &position) const
 

Private Attributes

std::unique_ptr< PathGenerator_path
 
ObjectGuid _fleeTargetGUID
 
TimeTracker _timer
 

Additional Inherited Members

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

Detailed Description

Definition at line 28 of file FleeingMovementGenerator.h.

Constructor & Destructor Documentation

◆ FleeingMovementGenerator()

FleeingMovementGenerator::FleeingMovementGenerator ( ObjectGuid  fleeTargetGUID)
explicit

Definition at line 29 of file FleeingMovementGenerator.cpp.

Member Function Documentation

◆ Deactivate()

void FleeingMovementGenerator::Deactivate ( Unit owner)
overridevirtual

Implements MovementGenerator.

Definition at line 86 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ Finalize()

void FleeingMovementGenerator::Finalize ( Unit owner,
bool  active,
bool   
)
overridevirtual

Implements MovementGenerator.

Reimplemented in TimedFleeingMovementGenerator.

Definition at line 92 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetMovementGeneratorType()

MovementGeneratorType FleeingMovementGenerator::GetMovementGeneratorType ( ) const
overridevirtual

Implements MovementGenerator.

Reimplemented in TimedFleeingMovementGenerator.

Definition at line 37 of file FleeingMovementGenerator.cpp.

◆ GetPoint()

void FleeingMovementGenerator::GetPoint ( Unit owner,
Position position 
) const
private

Definition at line 157 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Initialize()

void FleeingMovementGenerator::Initialize ( Unit owner)
overridevirtual

Implements MovementGenerator.

Definition at line 42 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Reset()

void FleeingMovementGenerator::Reset ( Unit owner)
overridevirtual

Implements MovementGenerator.

Definition at line 54 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ SetTargetLocation()

void FleeingMovementGenerator::SetTargetLocation ( Unit owner)
private

Definition at line 110 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnitSpeedChanged()

void FleeingMovementGenerator::UnitSpeedChanged ( )
inlineoverridevirtual

Reimplemented from MovementGenerator.

Definition at line 41 of file FleeingMovementGenerator.h.

+ Here is the call graph for this function:

◆ Update()

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

Implements MovementGenerator.

Reimplemented in TimedFleeingMovementGenerator.

Definition at line 61 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _fleeTargetGUID

ObjectGuid FleeingMovementGenerator::_fleeTargetGUID
private

Definition at line 48 of file FleeingMovementGenerator.h.

◆ _path

std::unique_ptr<PathGenerator> FleeingMovementGenerator::_path
private

Definition at line 47 of file FleeingMovementGenerator.h.

◆ _timer

TimeTracker FleeingMovementGenerator::_timer
private

Definition at line 49 of file FleeingMovementGenerator.h.


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