42 void DelayedUpdate(
uint32 diff);
89 void UpdatePosition(
float x,
float y,
float z,
float o);
92 void LoadStaticPassengers();
95 void UnloadStaticPassengers();
97 void EnableMovement(
bool enabled);
104 void MoveToNextWaypoint();
105 float CalculateSegmentPos(
float perc);
106 bool TeleportTransport(
uint32 newMapid,
float x,
float y,
float z,
float o);
107 void DelayedTeleportTransport();
108 void UpdatePassengerPositions(PassengerSet& passengers);
109 void DoEventIfAny(
KeyFrame const& node,
bool departure);
KeyFrameVec::const_iterator _nextFrame
Definition: Transport.h:118
Definition: Creature.h:287
std::vector< KeyFrame > KeyFrameVec
Definition: TransportMgr.h:34
PassengerSet _passengers
Definition: Transport.h:127
uint32 GetUInt32Value(uint16 index) const
Definition: Object.cpp:300
Definition: TemporarySummon.h:40
PassengerSet _staticPassengers
Definition: Transport.h:129
void CalculatePassengerPosition(float &x, float &y, float &z, float *o=NULL) const override
This method transforms supplied transport offsets into global coordinates.
Definition: Transport.h:72
uint32 GetTransportPeriod() const override
Definition: Transport.h:83
arena_t NULL
Definition: jemalloc_internal.h:624
virtual void CalculatePassengerOffset(float &x, float &y, float &z, float *o=NULL) const =0
This method transforms supplied global coordinates into local offsets.
void SetUInt32Value(uint16 index, uint32 value)
Definition: Object.cpp:996
bool _pendingStop
Definition: Transport.h:121
struct GameObjectValue::@273 Transport
Definition: Transport.h:28
Definition: Creature.h:467
bool _isMoving
Definition: Transport.h:120
TempSummonType
Definition: Object.h:52
uint64 LowType
Definition: ObjectGuid.h:199
Definition: VehicleDefines.h:119
virtual void CalculatePassengerPosition(float &x, float &y, float &z, float *o=NULL) const =0
This method transforms supplied transport offsets into global coordinates.
KeyFrameVec const & GetKeyFrames() const
Definition: Transport.h:87
float GetOrientation() const
Definition: Position.h:107
std::unordered_map< Player *, UpdateData > UpdateDataMapType
Definition: Object.h:91
void BuildUpdate(UpdateDataMapType &) override
Definition: Object.cpp:3078
bool _triggeredDepartureEvent
Definition: Transport.h:125
void Update(uint32 p_time) override
Definition: GameObject.cpp:331
TransportTemplate const * GetTransportTemplate() const
Definition: Transport.h:101
float GetPositionY() const
Definition: Position.h:105
G3D::int16 z
Definition: Vector3int16.h:46
void SetMoving(bool val)
Definition: Transport.h:113
Definition: UpdateFields.h:322
TimeTrackerSmall _positionChangeTimer
Definition: Transport.h:119
float GetPositionZ() const
Definition: Position.h:106
uint32_t uint32
Definition: Define.h:150
G3D::int16 y
Definition: Vector2int16.h:38
void CleanupsBeforeDelete(bool finalCleanup=true) override
Definition: GameObject.cpp:98
Definition: GameObject.h:880
bool _delayedTeleport
Definition: Transport.h:132
TransportTemplate const * _transportInfo
Definition: Transport.h:115
Definition: GameObject.h:833
void CalculatePassengerOffset(float &x, float &y, float &z, float *o=NULL) const override
This method transforms supplied global coordinates into local offsets.
Definition: Transport.h:78
void SetDelayedAddModelToMap()
Definition: Transport.h:99
bool _triggeredArrivalEvent
These are needed to properly control events triggering only once for each frame.
Definition: Transport.h:124
#define TC_GAME_API
Definition: Define.h:134
bool Create(ObjectGuid::LowType guidlow, uint32 name_id, Map *map, uint32 phaseMask, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 artKit=0)
Definition: GameObject.cpp:173
PassengerSet const & GetPassengers() const
Definition: Transport.h:48
Definition: Position.h:27
PassengerSet::iterator _passengerTeleportItr
Definition: Transport.h:128
uint32 PathProgress
Definition: GameObject.h:779
void SetPeriod(uint32 period)
Definition: Transport.h:84
KeyFrameVec::const_iterator _currentFrame
Definition: Transport.h:117
bool _delayedAddModel
Definition: Transport.h:131
Transport * CreateTransport(uint32 entry, ObjectGuid::LowType guid=UI64LIT(0), Map *map=nullptr, uint32 phaseid=0, uint32 phasegroup=0)
Definition: TransportMgr.cpp:359
GameObjectValue const * GetGOValue() const
Definition: GameObject.h:896
Definition: TransportMgr.h:40
G3D::int16 x
Definition: Vector2int16.h:37
float GetPositionX() const
Definition: Position.h:104
std::set< WorldObject * > PassengerSet
Definition: Transport.h:34
bool IsMoving() const
Helpers to know if stop frame was reached.
Definition: Transport.h:112
Definition: TransportMgr.h:69
uint32 GetTimer() const
Definition: Transport.h:85
Definition: DBCStructure.h:1242