Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
WaypointMovementGenerator< Creature > Class Reference

#include <WaypointMovementGenerator.h>

Inheritance diagram for WaypointMovementGenerator< Creature >:
Collaboration diagram for WaypointMovementGenerator< Creature >:

Public Member Functions

void DoFinalize (Creature *)
void DoInitialize (Creature *)
void DoReset (Creature *)
bool DoUpdate (Creature *, uint32 diff)
MovementGeneratorType GetMovementGeneratorType ()
bool GetResetPos (Creature *, float &x, float &y, float &z)
void LoadPath (Creature *)
void MovementInform (Creature *)
 WaypointMovementGenerator (uint32 _path_id=0, bool _repeating=true)
 ~WaypointMovementGenerator ()
Public Member Functions inherited from MovementGeneratorMedium< Creature, WaypointMovementGenerator< Creature > >
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 ()
Public Member Functions inherited from PathMovementBase< T, P >
uint32 GetCurrentNode () const
void LoadPath (T &)
 PathMovementBase ()
virtual ~PathMovementBase ()

Private Member Functions

bool CanMove (int32 diff)
void OnArrived (Creature *)
bool StartMove (Creature *)
void StartMoveNow (Creature *creature)
void Stop (int32 time)
bool Stopped ()

Private Attributes

TimeTrackerSmall i_nextMoveTime
bool m_isArrivalDone
uint32 path_id
bool repeating

Additional Inherited Members

Protected Attributes inherited from PathMovementBase< T, P >
uint32 i_currentNode
i_path

Detailed Description

Definition at line 48 of file WaypointMovementGenerator.h.

Constructor & Destructor Documentation

◆ WaypointMovementGenerator()

WaypointMovementGenerator< Creature >::WaypointMovementGenerator ( uint32 _path_id = 0,
bool _repeating = true )
inline

◆ ~WaypointMovementGenerator()

Member Function Documentation

◆ CanMove()

bool WaypointMovementGenerator< Creature >::CanMove ( int32 diff)
inlineprivate

Definition at line 74 of file WaypointMovementGenerator.h.

References i_nextMoveTime.

Referenced by DoUpdate().

◆ DoFinalize()

◆ DoInitialize()

◆ DoReset()

◆ DoUpdate()

◆ GetMovementGeneratorType()

MovementGeneratorType WaypointMovementGenerator< Creature >::GetMovementGeneratorType ( )
inlinevirtual

Implements MovementGenerator.

Definition at line 62 of file WaypointMovementGenerator.h.

References WAYPOINT_MOTION_TYPE.

◆ GetResetPos()

◆ LoadPath()

◆ MovementInform()

◆ OnArrived()

◆ StartMove()

◆ StartMoveNow()

void WaypointMovementGenerator< Creature >::StartMoveNow ( Creature * creature)
inlineprivate

Definition at line 83 of file WaypointMovementGenerator.h.

References i_nextMoveTime, and StartMove().

Referenced by DoReset(), and LoadPath().

◆ Stop()

void WaypointMovementGenerator< Creature >::Stop ( int32 time)
inlineprivate

Definition at line 70 of file WaypointMovementGenerator.h.

References i_nextMoveTime.

Referenced by DoUpdate(), and OnArrived().

◆ Stopped()

bool WaypointMovementGenerator< Creature >::Stopped ( )
inlineprivate

Definition at line 72 of file WaypointMovementGenerator.h.

References i_nextMoveTime.

Referenced by DoUpdate(), and StartMove().

Member Data Documentation

◆ i_nextMoveTime

◆ m_isArrivalDone

bool WaypointMovementGenerator< Creature >::m_isArrivalDone
private

Definition at line 90 of file WaypointMovementGenerator.h.

Referenced by OnArrived(), StartMove(), and WaypointMovementGenerator().

◆ path_id

Definition at line 91 of file WaypointMovementGenerator.h.

Referenced by LoadPath(), and WaypointMovementGenerator().

◆ repeating

bool WaypointMovementGenerator< Creature >::repeating
private

Definition at line 92 of file WaypointMovementGenerator.h.

Referenced by StartMove(), and WaypointMovementGenerator().


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