TrinityCore
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< WaypointNodeNodes
 
std::vector< std::pair< std::size_t, std::size_t > > ContinuousSegments
 
uint32 Id = 0
 
WaypointMoveType MoveType = WaypointMoveType::Walk
 
EnumFlag< WaypointPathFlagsFlags = WaypointPathFlags::None
 
Optional< float > Velocity
 

Detailed Description

Definition at line 73 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 76 of file WaypointDefines.h.

Member Function Documentation

◆ BuildSegments()

void WaypointPath::BuildSegments ( )

Definition at line 338 of file WaypointManager.cpp.

Member Data Documentation

◆ ContinuousSegments

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

Definition at line 85 of file WaypointDefines.h.

◆ Flags

Definition at line 88 of file WaypointDefines.h.

◆ Id

uint32 WaypointPath::Id = 0

Definition at line 86 of file WaypointDefines.h.

◆ MoveType

WaypointMoveType WaypointPath::MoveType = WaypointMoveType::Walk

Definition at line 87 of file WaypointDefines.h.

◆ Nodes

std::vector<WaypointNode> WaypointPath::Nodes

Definition at line 84 of file WaypointDefines.h.

◆ Velocity

Optional<float> WaypointPath::Velocity

Definition at line 89 of file WaypointDefines.h.


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