TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FleeingMovementGenerator< T > Class Template Reference

#include <FleeingMovementGenerator.h>

+ Inheritance diagram for FleeingMovementGenerator< T >:

Public Member Functions

 FleeingMovementGenerator (ObjectGuid fleeTargetGUID)
 
MovementGeneratorType GetMovementGeneratorType () const override
 
void DoInitialize (T *)
 
void DoReset (T *)
 
bool DoUpdate (T *, uint32)
 
void DoDeactivate (T *)
 
void DoFinalize (T *, bool, bool)
 
void UnitSpeedChanged () override
 
void DoFinalize (Player *owner, bool active, bool)
 
- Public Member Functions inherited from MovementGeneratorMedium< T, FleeingMovementGenerator< T > >
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 active, bool movementInform) override
 
- Public Member Functions inherited from MovementGenerator
 MovementGenerator ()
 
virtual ~MovementGenerator ()
 
virtual void Initialize (Unit *)=0
 
virtual void Reset (Unit *)=0
 
virtual bool Update (Unit *, uint32 diff)=0
 
virtual void Deactivate (Unit *)=0
 
virtual void Finalize (Unit *, bool, bool)=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 (T *)
 
void GetPoint (T *, Position &position)
 

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

template<class T>
class FleeingMovementGenerator< T >

Definition at line 30 of file FleeingMovementGenerator.h.

Constructor & Destructor Documentation

◆ FleeingMovementGenerator()

template<class T >
template FleeingMovementGenerator< T >::FleeingMovementGenerator ( ObjectGuid  fleeTargetGUID)
explicit

Definition at line 33 of file FleeingMovementGenerator.cpp.

Member Function Documentation

◆ DoDeactivate()

template<class T >
template void FleeingMovementGenerator< T >::DoDeactivate ( T *  )

Definition at line 98 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoFinalize() [1/2]

void FleeingMovementGenerator< Player >::DoFinalize ( Player owner,
bool  active,
bool   
)

Definition at line 110 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoFinalize() [2/2]

template<class T >
void FleeingMovementGenerator< T >::DoFinalize ( T *  ,
bool  ,
bool   
)

Definition at line 105 of file FleeingMovementGenerator.cpp.

◆ DoInitialize()

template<class T >
template void FleeingMovementGenerator< T >::DoInitialize ( T *  )

Definition at line 48 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoReset()

template<class T >
template void FleeingMovementGenerator< T >::DoReset ( T *  )

Definition at line 64 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoUpdate()

template<class T >
template bool FleeingMovementGenerator< T >::DoUpdate ( T *  ,
uint32   
)

Definition at line 72 of file FleeingMovementGenerator.cpp.

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

◆ GetMovementGeneratorType()

template<class T >
template MovementGeneratorType FleeingMovementGenerator< T >::GetMovementGeneratorType ( ) const
overridevirtual

Implements MovementGenerator.

Definition at line 42 of file FleeingMovementGenerator.cpp.

◆ GetPoint()

template<class T >
template void FleeingMovementGenerator< T >::GetPoint ( T *  ,
Position position 
)
private

Definition at line 185 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ SetTargetLocation()

template<class T >
template void FleeingMovementGenerator< T >::SetTargetLocation ( T *  )
private

Definition at line 137 of file FleeingMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ UnitSpeedChanged()

template<class T >
void FleeingMovementGenerator< T >::UnitSpeedChanged ( )
inlineoverridevirtual

Reimplemented from MovementGenerator.

Definition at line 43 of file FleeingMovementGenerator.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ _fleeTargetGUID

template<class T >
ObjectGuid FleeingMovementGenerator< T >::_fleeTargetGUID
private

Definition at line 50 of file FleeingMovementGenerator.h.

◆ _path

template<class T >
std::unique_ptr<PathGenerator> FleeingMovementGenerator< T >::_path
private

Definition at line 49 of file FleeingMovementGenerator.h.

◆ _timer

template<class T >
TimeTracker FleeingMovementGenerator< T >::_timer
private

Definition at line 51 of file FleeingMovementGenerator.h.


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