![]() |
TrinityCore
|
#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 |
Definition at line 103 of file TransportMgr.h.
|
private |
Definition at line 33 of file TransportMgr.cpp.
|
private |
Definition at line 35 of file TransportMgr.cpp.
|
privatedelete |
|
private |
Definition at line 360 of file TransportMgr.cpp.
References _transportAnimations, TransportAnimation::Path, and TransportAnimation::TotalTime.
Referenced by LoadTransportAnimationAndRotation().
|
inlineprivate |
Definition at line 151 of file TransportMgr.h.
Referenced by LoadTransportAnimationAndRotation().
| void TransportMgr::CreateInstanceTransports | ( | Map * | map | ) |
Definition at line 460 of file TransportMgr.cpp.
References _instanceTransports, CreateTransport(), and Map::GetId().
| Transport * TransportMgr::CreateTransport | ( | uint32 | entry, |
| ObjectGuid::LowType | guid = 0, |
||
| Map * | map = nullptr |
||
| ) |
Definition at line 369 of file TransportMgr.cpp.
References Map::AddToMap(), TaxiPathNodeEntry::ContinentID, Transport::Create(), InstanceMap::GetInstanceScript(), WorldObject::GetMap(), WorldObject::GetName(), GetTransportTemplate(), TransportTemplate::inInstance, HashMapHolder< T >::Insert(), instance(), Map::IsDungeon(), TransportTemplate::keyFrames, TaxiPathNodeEntry::Loc, WorldObject::m_zoneScript, Mo_Transport, WorldObject::SetMap(), sMapMgr, sMapStore, sObjectMgr, TC_LOG_ERROR, Map::ToInstanceMap(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by CreateInstanceTransports(), and SpawnContinentTransports().
|
private |
Definition at line 125 of file TransportMgr.cpp.
References TransportTemplate::accelDist, GameObjectTemplate::accelRate, TransportTemplate::accelTime, ASSERT, TaxiPathNodeEntry::ContinentID, Movement::Spline< length_type >::evaluate_derivative(), TaxiPathNodeEntry::Flags, IN_MILLISECONDS, TransportTemplate::inInstance, Movement::SplineBase::init_spline_custom(), KeyFrame::InitialOrientation, Movement::Spline< length_type >::initLengths(), TransportTemplate::keyFrames, TaxiPathNodeEntry::Loc, M_PI, TransportTemplate::mapsUsed, Movement::SplineBase::ModeCatmullrom, GameObjectTemplate::moTransport, GameObjectTemplate::moveSpeed, KeyFrame::Node, Position::NormalizeOrientation(), TransportTemplate::pathTime, sMapStore, sTaxiPathNodesByPath, GameObjectTemplate::taxiPathId, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by LoadTransportTemplates().
|
inline |
Definition at line 131 of file TransportMgr.h.
|
inline |
Definition at line 123 of file TransportMgr.h.
Referenced by CreateTransport(), and SpawnContinentTransports().
|
static |
Definition at line 37 of file TransportMgr.cpp.
References instance().
Referenced by CreateTransport(), and instance().
| void TransportMgr::LoadTransportAnimationAndRotation | ( | ) |
Definition at line 97 of file TransportMgr.cpp.
References AddPathNodeToTransport(), AddPathRotationToTransport(), sTransportAnimationStore, and sTransportRotationStore.
| void TransportMgr::LoadTransportTemplates | ( | ) |
Definition at line 48 of file TransportMgr.cpp.
References _instanceTransports, _transportTemplates, TransportTemplate::entry, GeneratePath(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), TransportTemplate::inInstance, TransportTemplate::mapsUsed, GameObjectTemplate::moTransport, GameObjectTemplate::name, sObjectMgr, sTaxiPathNodesByPath, GameObjectTemplate::taxiPathId, TC_LOG_ERROR, TC_LOG_INFO, and WorldDatabase.
|
privatedelete |
| void TransportMgr::SpawnContinentTransports | ( | ) |
Definition at line 431 of file TransportMgr.cpp.
References _transportTemplates, CreateTransport(), getMSTime(), GetMSTimeDiffToNow(), GetTransportTemplate(), Field::GetUInt32(), TC_LOG_INFO, and WorldDatabase.
| void TransportMgr::Unload | ( | ) |
Definition at line 43 of file TransportMgr.cpp.
References _transportTemplates.
|
private |
Definition at line 160 of file TransportMgr.h.
Referenced by CreateInstanceTransports(), and LoadTransportTemplates().
|
private |
Definition at line 162 of file TransportMgr.h.
Referenced by AddPathNodeToTransport().
|
private |
Definition at line 157 of file TransportMgr.h.
Referenced by LoadTransportTemplates(), SpawnContinentTransports(), and Unload().