TrinityCore
Loading...
Searching...
No Matches
TransportMgr Class Reference

#include <TransportMgr.h>

Public Member Functions

 TransportMgr (TransportMgr const &)=delete
 
 TransportMgr (TransportMgr &&)=delete
 
TransportMgr & operator= (TransportMgr const &)=delete
 
TransportMgr & operator= (TransportMgr &&)=delete
 
void Unload ()
 
void LoadTransportTemplates ()
 
void LoadTransportAnimationAndRotation ()
 
void LoadTransportSpawns ()
 
Transport * CreateTransport (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 TransportMgr * instance ()
 

Private Member Functions

 TransportMgr ()
 
 ~TransportMgr ()
 
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 138 of file TransportMgr.h.

Constructor & Destructor Documentation

◆ TransportMgr() [1/3]

TransportMgr::TransportMgr ( TransportMgr const &  )
delete

◆ TransportMgr() [2/3]

TransportMgr::TransportMgr ( TransportMgr &&  )
delete

◆ TransportMgr() [3/3]

TransportMgr::TransportMgr ( )
privatedefault

◆ ~TransportMgr()

TransportMgr::~TransportMgr ( )
privatedefault

Member Function Documentation

◆ AddPathNodeToTransport()

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

◆ AddPathRotationToTransport()

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

◆ CreateTransport()

◆ CreateTransportsForMap()

void TransportMgr::CreateTransportsForMap ( Map *  map)

Definition at line 620 of file TransportMgr.cpp.

References _transportsByMap, CreateTransport(), and Map::GetId().

◆ GeneratePath()

◆ GetTransportAnimInfo()

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

◆ GetTransportSpawn()

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

Definition at line 643 of file TransportMgr.cpp.

References _transportSpawns, and Trinity::Containers::MapGetValuePtr().

◆ GetTransportTemplate()

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

◆ instance()

TransportMgr * TransportMgr::instance ( )
static

Definition at line 183 of file TransportMgr.cpp.

Referenced by CreateTransport().

◆ LoadTransportAnimationAndRotation()

void TransportMgr::LoadTransportAnimationAndRotation ( )

◆ LoadTransportSpawns()

◆ LoadTransportTemplates()

◆ operator=() [1/2]

TransportMgr & TransportMgr::operator= ( TransportMgr &&  )
delete

◆ operator=() [2/2]

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

◆ Unload()

void TransportMgr::Unload ( )

Definition at line 189 of file TransportMgr.cpp.

References _transportTemplates.

Member Data Documentation

◆ _transportAnimations

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

◆ _transportsByMap

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

Definition at line 183 of file TransportMgr.h.

Referenced by CreateTransportsForMap(), and LoadTransportSpawns().

◆ _transportSpawns

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

Definition at line 187 of file TransportMgr.h.

Referenced by GetTransportSpawn(), and LoadTransportSpawns().

◆ _transportTemplates

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

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