Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
FleeingMovementGenerator< T > Class Template Reference

#include <FleeingMovementGenerator.h>

Inheritance diagram for FleeingMovementGenerator< T >:
Collaboration diagram for FleeingMovementGenerator< T >:

Public Member Functions

void DoFinalize (Creature *owner)
void DoFinalize (Player *owner)
void DoFinalize (T *)
void DoInitialize (T *)
void DoReset (T *)
bool DoUpdate (T *, uint32)
 FleeingMovementGenerator (uint64 fright)
MovementGeneratorType GetMovementGeneratorType ()
Public Member Functions inherited from MovementGeneratorMedium< T, FleeingMovementGenerator< T > >
void Finalize (Unit *u)
void Initialize (Unit *u)
void Reset (Unit *u)
bool Update (Unit *u, uint32 time_diff)
Public Member Functions inherited from MovementGenerator
virtual bool GetResetPosition (Unit *, float &, float &, float &)
virtual void unitSpeedChanged ()
virtual ~MovementGenerator ()

Private Member Functions

void _getPoint (T *, float &x, float &y, float &z)
void _setTargetLocation (T *)

Private Attributes

uint64 i_frightGUID
TimeTracker i_nextCheckTime

Detailed Description

template<class T>
class FleeingMovementGenerator< T >

Definition at line 12 of file FleeingMovementGenerator.h.

Constructor & Destructor Documentation

◆ FleeingMovementGenerator()

template<class T>
FleeingMovementGenerator< T >::FleeingMovementGenerator ( uint64 fright)
inline

Definition at line 15 of file FleeingMovementGenerator.h.

References i_frightGUID, and i_nextCheckTime.

Member Function Documentation

◆ _getPoint()

template<class T>
template void FleeingMovementGenerator< T >::_getPoint ( T * ,
float & x,
float & y,
float & z )
private

◆ _setTargetLocation()

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

Definition at line 20 of file FleeingMovementGenerator.cpp.

Referenced by DoInitialize(), and DoUpdate().

◆ DoFinalize() [1/3]

void FleeingMovementGenerator< Creature >::DoFinalize ( Creature * owner)

Definition at line 111 of file FleeingMovementGenerator.cpp.

◆ DoFinalize() [2/3]

void FleeingMovementGenerator< Player >::DoFinalize ( Player * owner)

Definition at line 103 of file FleeingMovementGenerator.cpp.

◆ DoFinalize() [3/3]

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

◆ DoInitialize()

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

◆ DoReset()

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

Definition at line 120 of file FleeingMovementGenerator.cpp.

References DoInitialize().

◆ DoUpdate()

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

◆ GetMovementGeneratorType()

template<class T>
MovementGeneratorType FleeingMovementGenerator< T >::GetMovementGeneratorType ( )
inlinevirtual

Implements MovementGenerator.

Reimplemented in TimedFleeingMovementGenerator.

Definition at line 22 of file FleeingMovementGenerator.h.

References FLEEING_MOTION_TYPE.

Member Data Documentation

◆ i_frightGUID

template<class T>
uint64 FleeingMovementGenerator< T >::i_frightGUID
private

Definition at line 28 of file FleeingMovementGenerator.h.

Referenced by _getPoint(), and FleeingMovementGenerator().

◆ i_nextCheckTime

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

Definition at line 29 of file FleeingMovementGenerator.h.

Referenced by DoUpdate(), and FleeingMovementGenerator().


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