18 #ifndef TRANSPORTMGR_H
19 #define TRANSPORTMGR_H
109 void LoadTransportTemplates();
115 void SpawnContinentTransports();
118 void CreateInstanceTransports(
Map* map);
122 TransportTemplates::const_iterator itr = _transportTemplates.find(entry);
123 if (itr != _transportTemplates.end())
130 TransportAnimationContainer::const_iterator itr = _transportAnimations.find(entry);
131 if (itr != _transportAnimations.end())
150 _transportAnimations[transportEntry].Rotations[timeSeg] = node;
162 #define sTransportMgr TransportMgr::instance()
164 #endif // TRANSPORTMGR_H
uint32 DepartureTime
Definition: TransportMgr.h:58
float DistFromPrev
Definition: TransportMgr.h:53
std::vector< KeyFrame > KeyFrameVec
Definition: TransportMgr.h:34
bool IsStopFrame() const
Definition: TransportMgr.h:66
uint32 ArriveTime
Definition: TransportMgr.h:57
uint32 entry
Definition: TransportMgr.h:80
Definition: TransportMgr.h:86
Movement::Spline< double > TransportSpline
Definition: TransportMgr.h:31
void AddPathRotationToTransport(uint32 transportEntry, uint32 timeSeg, TransportRotationEntry const *node)
Definition: TransportMgr.h:148
Definition: TransportMgr.h:100
TransportAnimation const * GetTransportAnimInfo(uint32 entry) const
Definition: TransportMgr.h:128
#define UI64LIT(N)
Definition: Define.h:138
Definition: GameObject.h:34
float accelTime
Definition: TransportMgr.h:78
arena_t NULL
Definition: jemalloc_internal.h:624
float DistUntilStop
Definition: TransportMgr.h:52
#define false
Definition: CascPort.h:18
float TimeFrom
Definition: TransportMgr.h:54
Definition: Transport.h:28
TaxiPathNodeEntry const * Node
Definition: TransportMgr.h:49
Definition: DBCEnums.h:702
~TransportTemplate()
Definition: TransportMgr.cpp:23
std::map< uint32, TransportRotationEntry const * > TransportPathRotationContainer
Definition: TransportMgr.h:84
uint64 LowType
Definition: ObjectGuid.h:199
float InitialOrientation
Definition: TransportMgr.h:50
std::unordered_map< uint32, std::set< uint32 > > TransportInstanceMap
Definition: TransportMgr.h:38
std::set< uint32 > mapsUsed
Definition: TransportMgr.h:74
TransportSpline * Spline
Definition: TransportMgr.h:59
TransportTemplate const * GetTransportTemplate(uint32 entry) const
Definition: TransportMgr.h:120
TransportAnimation()
Definition: TransportMgr.h:88
KeyFrameVec keyFrames
Definition: TransportMgr.h:77
uint32 Flags
Definition: DB2Structure.h:1352
std::map< uint32, TransportAnimationEntry const * > TransportPathContainer
Definition: TransportMgr.h:83
float TimeTo
Definition: TransportMgr.h:55
KeyFrame(TaxiPathNodeEntry const *node)
Definition: TransportMgr.h:42
Vector2int16 & operator=(const Any &a)
Definition: DB2Structure.h:1375
uint32_t uint32
Definition: Define.h:150
float DistSinceStop
Definition: TransportMgr.h:51
std::unordered_map< uint32, TransportTemplate > TransportTemplates
Definition: TransportMgr.h:35
uint32 Index
Definition: TransportMgr.h:48
Definition: DB2Structure.h:1345
Definition: DB2Structure.h:1384
bool Teleport
Definition: TransportMgr.h:56
bool inInstance
Definition: TransportMgr.h:75
uint32 NextArriveTime
Definition: TransportMgr.h:63
void LoadStores(std::string const &dataPath, uint32 defaultLocale)
Definition: DB2Stores.cpp:196
#define TC_GAME_API
Definition: Define.h:134
TransportPathContainer Path
Definition: TransportMgr.h:90
TransportInstanceMap _instanceTransports
Definition: TransportMgr.h:157
TransportTemplates _transportTemplates
Definition: TransportMgr.h:154
std::unordered_map< uint32, TransportSet > TransportMap
Definition: TransportMgr.h:37
TransportTemplate()
Definition: TransportMgr.h:71
Definition: TransportMgr.h:40
std::set< Transport * > TransportSet
Definition: TransportMgr.h:36
uint32 pathTime
Definition: TransportMgr.h:76
TransportAnimationContainer _transportAnimations
Definition: TransportMgr.h:159
TransportPathRotationContainer Rotations
Definition: TransportMgr.h:91
float NextDistFromPrev
Definition: TransportMgr.h:62
bool IsTeleportFrame() const
Definition: TransportMgr.h:65
std::map< uint32, TransportAnimation > TransportAnimationContainer
Definition: TransportMgr.h:98
Definition: TransportMgr.h:69
uint32 TotalTime
Definition: TransportMgr.h:92
float accelDist
Definition: TransportMgr.h:79