TrinityCore
TransportMgr Class Reference

#include <TransportMgr.h>

Public Member Functions

void Unload ()
 
void LoadTransportTemplates ()
 
void LoadTransportAnimationAndRotation ()
 
void LoadTransportSpawns ()
 
TransportCreateTransport (uint32 entry, Map *map, ObjectGuid::LowType guid=0, uint8 phaseUseFlags=0, uint32 phaseId=0, uint32 phaseGroupId=0)
 
void CreateTransportsForMap (Map *map)
 
TransportTemplate const * GetTransportTemplate (uint32 entry) const
 
TransportAnimation const * GetTransportAnimInfo (uint32 entry) const
 
TransportSpawn const * GetTransportSpawn (ObjectGuid::LowType spawnId) const
 

Static Public Member Functions

static TransportMgrinstance ()
 

Private Member Functions

 TransportMgr ()
 
 ~TransportMgr ()
 
 TransportMgr (TransportMgr const &)=delete
 
 TransportMgr (TransportMgr &&)=delete
 
TransportMgroperator= (TransportMgr const &)=delete
 
TransportMgroperator= (TransportMgr &&)=delete
 
void GeneratePath (GameObjectTemplate const *goInfo, TransportTemplate *transport)
 
void AddPathNodeToTransport (uint32 transportEntry, uint32 timeSeg, TransportAnimationEntry const *node)
 
void AddPathRotationToTransport (uint32 transportEntry, uint32 timeSeg, TransportRotationEntry const *node)
 

Private Attributes

std::unordered_map< uint32, TransportTemplate_transportTemplates
 
std::unordered_map< uint32, std::set< TransportSpawn * > > _transportsByMap
 
std::map< uint32, TransportAnimation_transportAnimations
 
std::unordered_map< ObjectGuid::LowType, TransportSpawn_transportSpawns
 

Detailed Description

Definition at line 132 of file TransportMgr.h.

Constructor & Destructor Documentation

◆ TransportMgr() [1/3]

TransportMgr::TransportMgr ( )
privatedefault

◆ ~TransportMgr()

TransportMgr::~TransportMgr ( )
privatedefault

◆ TransportMgr() [2/3]

TransportMgr::TransportMgr ( TransportMgr const &  )
privatedelete

◆ TransportMgr() [3/3]

TransportMgr::TransportMgr ( TransportMgr &&  )
privatedelete

Member Function Documentation

◆ AddPathNodeToTransport()

void TransportMgr::AddPathNodeToTransport ( uint32  transportEntry,
uint32  timeSeg,
TransportAnimationEntry const *  node 
)
private

Definition at line 540 of file TransportMgr.cpp.

+ Here is the caller graph for this function:

◆ AddPathRotationToTransport()

void TransportMgr::AddPathRotationToTransport ( uint32  transportEntry,
uint32  timeSeg,
TransportRotationEntry const *  node 
)
private

Definition at line 549 of file TransportMgr.cpp.

+ Here is the caller graph for this function:

◆ CreateTransport()

Transport * TransportMgr::CreateTransport ( uint32  entry,
Map map,
ObjectGuid::LowType  guid = 0,
uint8  phaseUseFlags = 0,
uint32  phaseId = 0,
uint32  phaseGroupId = 0 
)

Definition at line 558 of file TransportMgr.cpp.

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

◆ CreateTransportsForMap()

void TransportMgr::CreateTransportsForMap ( Map map)

Definition at line 617 of file TransportMgr.cpp.

+ Here is the call graph for this function:

◆ GeneratePath()

void TransportMgr::GeneratePath ( GameObjectTemplate const *  goInfo,
TransportTemplate transport 
)
private

Definition at line 489 of file TransportMgr.cpp.

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

◆ GetTransportAnimInfo()

TransportAnimation const * TransportMgr::GetTransportAnimInfo ( uint32  entry) const

Definition at line 635 of file TransportMgr.cpp.

+ Here is the call graph for this function:

◆ GetTransportSpawn()

TransportSpawn const * TransportMgr::GetTransportSpawn ( ObjectGuid::LowType  spawnId) const

Definition at line 640 of file TransportMgr.cpp.

+ Here is the call graph for this function:

◆ GetTransportTemplate()

TransportTemplate const * TransportMgr::GetTransportTemplate ( uint32  entry) const

Definition at line 630 of file TransportMgr.cpp.

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

◆ instance()

TransportMgr * TransportMgr::instance ( )
static

Definition at line 181 of file TransportMgr.cpp.

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

◆ LoadTransportAnimationAndRotation()

void TransportMgr::LoadTransportAnimationAndRotation ( )

Definition at line 237 of file TransportMgr.cpp.

+ Here is the call graph for this function:

◆ LoadTransportSpawns()

void TransportMgr::LoadTransportSpawns ( )

Definition at line 246 of file TransportMgr.cpp.

+ Here is the call graph for this function:

◆ LoadTransportTemplates()

void TransportMgr::LoadTransportTemplates ( )

Definition at line 192 of file TransportMgr.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

TransportMgr & TransportMgr::operator= ( TransportMgr &&  )
privatedelete

◆ operator=() [2/2]

TransportMgr & TransportMgr::operator= ( TransportMgr const &  )
privatedelete

◆ Unload()

void TransportMgr::Unload ( )

Definition at line 187 of file TransportMgr.cpp.

Member Data Documentation

◆ _transportAnimations

std::map<uint32, TransportAnimation> TransportMgr::_transportAnimations
private

Definition at line 178 of file TransportMgr.h.

◆ _transportsByMap

std::unordered_map<uint32, std::set<TransportSpawn*> > TransportMgr::_transportsByMap
private

Definition at line 176 of file TransportMgr.h.

◆ _transportSpawns

std::unordered_map<ObjectGuid::LowType, TransportSpawn> TransportMgr::_transportSpawns
private

Definition at line 180 of file TransportMgr.h.

◆ _transportTemplates

std::unordered_map<uint32, TransportTemplate> TransportMgr::_transportTemplates
private

Definition at line 173 of file TransportMgr.h.


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