TrinityCore
WaypointMgr Class Reference

#include <WaypointManager.h>

Public Member Functions

void ReloadPath (uint32 pathId)
 
void LoadPaths ()
 
void LoadPathFromDB (Field *fields)
 
void LoadPathNodesFromDB (Field *fields)
 
void DoPostLoadingChecks ()
 
void VisualizePath (Unit *owner, WaypointPath const *path, Optional< uint32 > displayId)
 
void DevisualizePath (Unit *owner, WaypointPath const *path)
 
void MoveNode (WaypointPath const *path, WaypointNode const *node, Position const &pos)
 
void DeleteNode (WaypointPath const *path, WaypointNode const *node)
 
void DeleteNode (uint32 pathId, uint32 nodeId)
 
WaypointPath const * GetPath (uint32 pathId) const
 
WaypointNode const * GetNode (WaypointPath const *path, uint32 nodeId) const
 
WaypointNode const * GetNode (uint32 pathId, uint32 nodeId) const
 
WaypointPath const * GetPathByVisualGUID (ObjectGuid guid) const
 
WaypointNode const * GetNodeByVisualGUID (ObjectGuid guid) const
 
ObjectGuid const & GetVisualGUIDByNode (uint32 pathId, uint32 nodeId) const
 

Static Public Member Functions

static WaypointMgrinstance ()
 

Private Member Functions

 WaypointMgr ()
 
void _LoadPaths ()
 
void _LoadPathNodes ()
 

Private Attributes

std::unordered_map< uint32, WaypointPath_pathStore
 
std::unordered_map< std::pair< uint32, uint32 >, ObjectGuid_nodeToVisualWaypointGUIDsMap
 
std::unordered_map< ObjectGuid, std::pair< WaypointPath const *, WaypointNode const * > > _visualWaypointGUIDToNodeMap
 

Detailed Description

Definition at line 31 of file WaypointManager.h.

Constructor & Destructor Documentation

◆ WaypointMgr()

WaypointMgr::WaypointMgr ( )
inlineprivate

Definition at line 60 of file WaypointManager.h.

Member Function Documentation

◆ _LoadPathNodes()

void WaypointMgr::_LoadPathNodes ( )
private

Definition at line 61 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _LoadPaths()

void WaypointMgr::_LoadPaths ( )
private

Definition at line 35 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeleteNode() [1/2]

void WaypointMgr::DeleteNode ( uint32  pathId,
uint32  nodeId 
)

Definition at line 257 of file WaypointManager.cpp.

+ Here is the call graph for this function:

◆ DeleteNode() [2/2]

void WaypointMgr::DeleteNode ( WaypointPath const *  path,
WaypointNode const *  node 
)

Definition at line 244 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DevisualizePath()

void WaypointMgr::DevisualizePath ( Unit owner,
WaypointPath const *  path 
)

Definition at line 212 of file WaypointManager.cpp.

+ Here is the call graph for this function:

◆ DoPostLoadingChecks()

void WaypointMgr::DoPostLoadingChecks ( )

Definition at line 127 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNode() [1/2]

WaypointNode const * WaypointMgr::GetNode ( uint32  pathId,
uint32  nodeId 
) const

Definition at line 285 of file WaypointManager.cpp.

+ Here is the call graph for this function:

◆ GetNode() [2/2]

WaypointNode const * WaypointMgr::GetNode ( WaypointPath const *  path,
uint32  nodeId 
) const

Definition at line 275 of file WaypointManager.cpp.

+ Here is the caller graph for this function:

◆ GetNodeByVisualGUID()

WaypointNode const * WaypointMgr::GetNodeByVisualGUID ( ObjectGuid  guid) const

Definition at line 303 of file WaypointManager.cpp.

◆ GetPath()

WaypointPath const * WaypointMgr::GetPath ( uint32  pathId) const

Definition at line 270 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPathByVisualGUID()

WaypointPath const * WaypointMgr::GetPathByVisualGUID ( ObjectGuid  guid) const

Definition at line 294 of file WaypointManager.cpp.

◆ GetVisualGUIDByNode()

ObjectGuid const & WaypointMgr::GetVisualGUIDByNode ( uint32  pathId,
uint32  nodeId 
) const

Definition at line 312 of file WaypointManager.cpp.

◆ instance()

WaypointMgr * WaypointMgr::instance ( )
static

Definition at line 140 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadPathFromDB()

void WaypointMgr::LoadPathFromDB ( Field fields)

Definition at line 86 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadPathNodesFromDB()

void WaypointMgr::LoadPathNodesFromDB ( Field fields)

Definition at line 103 of file WaypointManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadPaths()

void WaypointMgr::LoadPaths ( )

Definition at line 28 of file WaypointManager.cpp.

+ Here is the call graph for this function:

◆ MoveNode()

void WaypointMgr::MoveNode ( WaypointPath const *  path,
WaypointNode const *  node,
Position const &  pos 
)

Definition at line 232 of file WaypointManager.cpp.

+ Here is the call graph for this function:

◆ ReloadPath()

void WaypointMgr::ReloadPath ( uint32  pathId)

Definition at line 146 of file WaypointManager.cpp.

+ Here is the call graph for this function:

◆ VisualizePath()

void WaypointMgr::VisualizePath ( Unit owner,
WaypointPath const *  path,
Optional< uint32 displayId 
)

Definition at line 187 of file WaypointManager.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _nodeToVisualWaypointGUIDsMap

std::unordered_map<std::pair<uint32 , uint32 >, ObjectGuid> WaypointMgr::_nodeToVisualWaypointGUIDsMap
private

Definition at line 67 of file WaypointManager.h.

◆ _pathStore

std::unordered_map<uint32 , WaypointPath> WaypointMgr::_pathStore
private

Definition at line 65 of file WaypointManager.h.

◆ _visualWaypointGUIDToNodeMap

std::unordered_map<ObjectGuid, std::pair<WaypointPath const*, WaypointNode const*> > WaypointMgr::_visualWaypointGUIDToNodeMap
private

Definition at line 68 of file WaypointManager.h.


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