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

#include <TransportMgr.h>

Public Member Functions

void Unload ()
 
void LoadTransportTemplates ()
 
void LoadTransportAnimationAndRotation ()
 
Transport * CreateTransport (uint32 entry, ObjectGuid::LowType guid=0, Map *map=nullptr)
 
void SpawnContinentTransports ()
 
void CreateInstanceTransports (Map *map)
 
TransportTemplate const * GetTransportTemplate (uint32 entry) const
 
TransportAnimation const * GetTransportAnimInfo (uint32 entry) const
 

Static Public Member Functions

static TransportMgr * instance ()
 

Private Member Functions

 TransportMgr ()
 
 ~TransportMgr ()
 
 TransportMgr (TransportMgr const &)=delete
 
TransportMgr & operator= (TransportMgr const &)=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

TransportTemplates _transportTemplates
 
TransportInstanceMap _instanceTransports
 
TransportAnimationContainer _transportAnimations
 

Detailed Description

Definition at line 103 of file TransportMgr.h.

Constructor & Destructor Documentation

◆ TransportMgr() [1/2]

TransportMgr::TransportMgr ( )
private

Definition at line 33 of file TransportMgr.cpp.

◆ ~TransportMgr()

TransportMgr::~TransportMgr ( )
private

Definition at line 35 of file TransportMgr.cpp.

◆ TransportMgr() [2/2]

TransportMgr::TransportMgr ( TransportMgr const &  )
privatedelete

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 
)
inlineprivate

Definition at line 151 of file TransportMgr.h.

Referenced by LoadTransportAnimationAndRotation().

◆ CreateInstanceTransports()

void TransportMgr::CreateInstanceTransports ( Map *  map)

Definition at line 460 of file TransportMgr.cpp.

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

◆ CreateTransport()

◆ GeneratePath()

◆ GetTransportAnimInfo()

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

Definition at line 131 of file TransportMgr.h.

◆ GetTransportTemplate()

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

Definition at line 123 of file TransportMgr.h.

Referenced by CreateTransport(), and SpawnContinentTransports().

◆ instance()

TransportMgr * TransportMgr::instance ( )
static

Definition at line 37 of file TransportMgr.cpp.

References instance().

Referenced by CreateTransport(), and instance().

◆ LoadTransportAnimationAndRotation()

void TransportMgr::LoadTransportAnimationAndRotation ( )

◆ LoadTransportTemplates()

◆ operator=()

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

◆ SpawnContinentTransports()

void TransportMgr::SpawnContinentTransports ( )

◆ Unload()

void TransportMgr::Unload ( )

Definition at line 43 of file TransportMgr.cpp.

References _transportTemplates.

Member Data Documentation

◆ _instanceTransports

TransportInstanceMap TransportMgr::_instanceTransports
private

Definition at line 160 of file TransportMgr.h.

Referenced by CreateInstanceTransports(), and LoadTransportTemplates().

◆ _transportAnimations

TransportAnimationContainer TransportMgr::_transportAnimations
private

Definition at line 162 of file TransportMgr.h.

Referenced by AddPathNodeToTransport().

◆ _transportTemplates

TransportTemplates TransportMgr::_transportTemplates
private

Definition at line 157 of file TransportMgr.h.

Referenced by LoadTransportTemplates(), SpawnContinentTransports(), and Unload().


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