Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Path< PathElem, PathNode > Class Template Reference

#include <Path.h>

Public Member Functions

void clear ()
void crop (unsigned int start, unsigned int end)
bool empty () const
void erase (uint32 idx)
float GetPassedLength (uint32 curnode, float x, float y, float z) const
float GetTotalLength () const
float GetTotalLength (uint32 start, uint32 end) const
PathNodeoperator[] (size_t idx)
PathNode const & operator[] (size_t idx) const
void resize (unsigned int sz)
void set (size_t idx, PathElem elem)
size_t size () const

Protected Attributes

std::deque< PathElem > i_nodes

Detailed Description

template<typename PathElem, typename PathNode = PathElem>
class Path< PathElem, PathNode >

Definition at line 20 of file Path.h.

Member Function Documentation

◆ clear()

template<typename PathElem, typename PathNode = PathElem>
void Path< PathElem, PathNode >::clear ( )
inline

Definition at line 26 of file Path.h.

◆ crop()

template<typename PathElem, typename PathNode = PathElem>
void Path< PathElem, PathNode >::crop ( unsigned int start,
unsigned int end )
inline

Definition at line 28 of file Path.h.

◆ empty()

template<typename PathElem, typename PathNode = PathElem>
bool Path< PathElem, PathNode >::empty ( ) const
inline

Definition at line 24 of file Path.h.

◆ erase()

template<typename PathElem, typename PathNode = PathElem>
void Path< PathElem, PathNode >::erase ( uint32 idx)
inline

Definition at line 27 of file Path.h.

◆ GetPassedLength()

template<typename PathElem, typename PathNode = PathElem>
float Path< PathElem, PathNode >::GetPassedLength ( uint32 curnode,
float x,
float y,
float z ) const
inline

Definition at line 60 of file Path.h.

◆ GetTotalLength() [1/2]

template<typename PathElem, typename PathNode = PathElem>
float Path< PathElem, PathNode >::GetTotalLength ( ) const
inline

◆ GetTotalLength() [2/2]

template<typename PathElem, typename PathNode = PathElem>
float Path< PathElem, PathNode >::GetTotalLength ( uint32 start,
uint32 end ) const
inline

Definition at line 43 of file Path.h.

◆ operator[]() [1/2]

template<typename PathElem, typename PathNode = PathElem>
PathNode & Path< PathElem, PathNode >::operator[] ( size_t idx)
inline

Definition at line 76 of file Path.h.

◆ operator[]() [2/2]

template<typename PathElem, typename PathNode = PathElem>
PathNode const & Path< PathElem, PathNode >::operator[] ( size_t idx) const
inline

Definition at line 77 of file Path.h.

◆ resize()

template<typename PathElem, typename PathNode = PathElem>
void Path< PathElem, PathNode >::resize ( unsigned int sz)
inline

Definition at line 25 of file Path.h.

◆ set()

template<typename PathElem, typename PathNode = PathElem>
void Path< PathElem, PathNode >::set ( size_t idx,
PathElem elem )
inline

Definition at line 79 of file Path.h.

◆ size()

template<typename PathElem, typename PathNode = PathElem>
size_t Path< PathElem, PathNode >::size ( ) const
inline

Member Data Documentation

◆ i_nodes

template<typename PathElem, typename PathNode = PathElem>
std::deque<PathElem> Path< PathElem, PathNode >::i_nodes
protected

Definition at line 82 of file Path.h.


The documentation for this class was generated from the following file:
  • src/server/game/Movement/Waypoints/Path.h