TrinityCore
Loading...
Searching...
No Matches
WaypointPath Struct Reference

#include <WaypointDefines.h>

Public Member Functions

 WaypointPath ()=default
 
 WaypointPath (uint32 id, std::vector< WaypointNode > &&nodes, WaypointMoveType moveType=WaypointMoveType::Walk, WaypointPathFlags flags=WaypointPathFlags::None)
 
void BuildSegments ()
 

Public Attributes

std::vector< WaypointNode > Nodes
 
std::vector< std::pair< std::size_t, std::size_t > > ContinuousSegments
 
uint32 Id = 0
 
WaypointMoveType MoveType = WaypointMoveType::Walk
 
EnumFlag< WaypointPathFlags > Flags = WaypointPathFlags::None
 
Optional< float > Velocity
 

Detailed Description

Definition at line 65 of file WaypointDefines.h.

Constructor & Destructor Documentation

◆ WaypointPath() [1/2]

WaypointPath::WaypointPath ( )
default

◆ WaypointPath() [2/2]

WaypointPath::WaypointPath ( uint32  id,
std::vector< WaypointNode > &&  nodes,
WaypointMoveType  moveType = WaypointMoveType::Walk,
WaypointPathFlags  flags = WaypointPathFlags::None 
)
inline

Definition at line 68 of file WaypointDefines.h.

Member Function Documentation

◆ BuildSegments()

void WaypointPath::BuildSegments ( )

Definition at line 351 of file WaypointManager.cpp.

References ContinuousSegments, and Nodes.

Member Data Documentation

◆ ContinuousSegments

std::vector<std::pair<std::size_t, std::size_t> > WaypointPath::ContinuousSegments

Definition at line 72 of file WaypointDefines.h.

Referenced by BuildSegments(), and WaypointMovementGenerator< T >::StartMove().

◆ Flags

◆ Id

◆ MoveType

◆ Nodes

◆ Velocity

Optional<float> WaypointPath::Velocity

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