TrinityCore
Loading...
Searching...
No Matches
WaypointMovementGenerator< Creature > Class Reference

#include <WaypointMovementGenerator.h>

+ Inheritance diagram for WaypointMovementGenerator< Creature >:

Public Member Functions

 WaypointMovementGenerator (uint32 pathId=0, bool repeating=true)
 
 WaypointMovementGenerator (WaypointPath &path, bool repeating=true)
 
 ~WaypointMovementGenerator ()
 
MovementGeneratorType GetMovementGeneratorType () const override
 
void UnitSpeedChanged () override
 
void Pause (uint32 timer=0) override
 
void Resume (uint32 overrideTimer=0) override
 
bool GetResetPosition (Unit *, float &x, float &y, float &z) override
 
bool DoInitialize (Creature *)
 
bool DoReset (Creature *)
 
bool DoUpdate (Creature *, uint32)
 
void DoDeactivate (Creature *)
 
void DoFinalize (Creature *, bool, bool)
 
std::string GetDebugInfo () const override
 
- Public Member Functions inherited from MovementGeneratorMedium< Creature, WaypointMovementGenerator< Creature > >
bool Initialize (Unit *owner) override
 
bool 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 ()
 
void AddFlag (uint16 const flag)
 
bool HasFlag (uint16 const flag) const
 
void RemoveFlag (uint16 const flag)
 
- Public Member Functions inherited from PathMovementBase< Entity, BasePath >
 PathMovementBase ()
 
virtual ~PathMovementBase ()
 
uint32 GetCurrentNode () const
 

Private Member Functions

void MovementInform (Creature *)
 
void OnArrived (Creature *)
 
void StartMove (Creature *, bool relaunch=false)
 
bool ComputeNextNode ()
 
bool UpdateTimer (uint32 diff)
 

Private Attributes

TimeTracker _nextMoveTime
 
uint32 _pathId
 
bool _repeating
 
bool _loadedFromDB
 

Additional Inherited Members

- Public Attributes inherited from MovementGenerator
uint8 Priority
 
uint16 Flags
 
uint32 BaseUnitState
 
- Protected Attributes inherited from PathMovementBase< Entity, BasePath >
BasePath _path
 
uint32 _currentNode
 

Detailed Description

Definition at line 33 of file WaypointMovementGenerator.h.

Constructor & Destructor Documentation

◆ WaypointMovementGenerator() [1/2]

WaypointMovementGenerator< Creature >::WaypointMovementGenerator ( uint32  pathId = 0,
bool  repeating = true 
)
explicit

Definition at line 31 of file WaypointMovementGenerator.cpp.

◆ WaypointMovementGenerator() [2/2]

WaypointMovementGenerator< Creature >::WaypointMovementGenerator ( WaypointPath path,
bool  repeating = true 
)
explicit

Definition at line 38 of file WaypointMovementGenerator.cpp.

◆ ~WaypointMovementGenerator()

Member Function Documentation

◆ ComputeNextNode()

bool WaypointMovementGenerator< Creature >::ComputeNextNode ( )
private

Definition at line 377 of file WaypointMovementGenerator.cpp.

◆ DoDeactivate()

void WaypointMovementGenerator< Creature >::DoDeactivate ( Creature owner)

Definition at line 213 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoFinalize()

void WaypointMovementGenerator< Creature >::DoFinalize ( Creature owner,
bool  active,
bool   
)

Definition at line 219 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoInitialize()

bool WaypointMovementGenerator< Creature >::DoInitialize ( Creature owner)

Definition at line 98 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoReset()

bool WaypointMovementGenerator< Creature >::DoReset ( Creature owner)

Definition at line 122 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ DoUpdate()

bool WaypointMovementGenerator< Creature >::DoUpdate ( Creature owner,
uint32  diff 
)

Definition at line 133 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetDebugInfo()

std::string WaypointMovementGenerator< Creature >::GetDebugInfo ( ) const
overridevirtual

Reimplemented from MovementGenerator.

Definition at line 386 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ GetMovementGeneratorType()

MovementGeneratorType WaypointMovementGenerator< Creature >::GetMovementGeneratorType ( ) const
overridevirtual

Implements MovementGenerator.

Definition at line 47 of file WaypointMovementGenerator.cpp.

◆ GetResetPosition()

bool WaypointMovementGenerator< Creature >::GetResetPosition ( Unit ,
float &  x,
float &  y,
float &  z 
)
overridevirtual

Reimplemented from MovementGenerator.

Definition at line 83 of file WaypointMovementGenerator.cpp.

◆ MovementInform()

void WaypointMovementGenerator< Creature >::MovementInform ( Creature owner)
private

Definition at line 231 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ OnArrived()

void WaypointMovementGenerator< Creature >::OnArrived ( Creature owner)
private

Definition at line 237 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ Pause()

void WaypointMovementGenerator< Creature >::Pause ( uint32  timer = 0)
overridevirtual

Reimplemented from MovementGenerator.

Definition at line 52 of file WaypointMovementGenerator.cpp.

◆ Resume()

void WaypointMovementGenerator< Creature >::Resume ( uint32  overrideTimer = 0)
overridevirtual

Reimplemented from MovementGenerator.

Definition at line 72 of file WaypointMovementGenerator.cpp.

◆ StartMove()

void WaypointMovementGenerator< Creature >::StartMove ( Creature owner,
bool  relaunch = false 
)
private

If creature is on transport, we assume waypoints set in DB are already transport offsets

Do not use formationDest here, MoveTo requires transport offsets due to DisableTransportPathTransformations() call but formationDest contains global coordinates

Definition at line 270 of file WaypointMovementGenerator.cpp.

+ Here is the call graph for this function:

◆ UnitSpeedChanged()

void WaypointMovementGenerator< Creature >::UnitSpeedChanged ( )
inlineoverridevirtual

Reimplemented from MovementGenerator.

Definition at line 42 of file WaypointMovementGenerator.h.

◆ UpdateTimer()

bool WaypointMovementGenerator< Creature >::UpdateTimer ( uint32  diff)
inlineprivate

Definition at line 60 of file WaypointMovementGenerator.h.

Member Data Documentation

◆ _loadedFromDB

bool WaypointMovementGenerator< Creature >::_loadedFromDB
private

Definition at line 74 of file WaypointMovementGenerator.h.

◆ _nextMoveTime

TimeTracker WaypointMovementGenerator< Creature >::_nextMoveTime
private

Definition at line 71 of file WaypointMovementGenerator.h.

◆ _pathId

Definition at line 72 of file WaypointMovementGenerator.h.

◆ _repeating

bool WaypointMovementGenerator< Creature >::_repeating
private

Definition at line 73 of file WaypointMovementGenerator.h.


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