![]() |
TrinityCore
|
Inheritance diagram for GameObjectType::Transport:Public Member Functions | |
| Transport (GameObject &owner) | |
| void | Update (uint32 diff) override |
| void | OnStateChanged (GOState oldState, GOState newState) override |
| void | OnRelocated () override |
| void | UpdatePassengerPositions () |
| uint32 | GetTransportPeriod () const |
| std::span< uint32 const > | GetPauseTimes () const |
| ObjectGuid | GetTransportGUID () const override |
| float | GetTransportOrientation () const override |
| void | AddPassenger (WorldObject *passenger, Position const &offset) override |
| TransportBase * | RemovePassenger (WorldObject *passenger) override |
| Position | GetPositionWithOffset (Position const &offset) const override |
| This method transforms supplied transport offsets into global coordinates. | |
| Position | GetPositionOffsetTo (Position const &endPos) const override |
| This method transforms supplied global coordinates into local offsets. | |
| int32 | GetMapIdForSpawning () const override |
| void | SetAutoCycleBetweenStopFrames (bool on) |
Public Member Functions inherited from GameObjectTypeBase | |
| GameObjectTypeBase (GameObject &owner) | |
| virtual | ~GameObjectTypeBase ()=default |
| virtual bool | IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects) const |
| virtual void | ActivateObject (GameObjectActions action, int32 param, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1) |
Public Member Functions inherited from TransportBase | |
| void | UpdatePassengerPosition (Map *map, WorldObject *passenger, Position const &position, bool setHomePosition) |
Static Public Attributes | |
| static constexpr Milliseconds | PositionUpdateInterval = 50ms |
Private Attributes | |
| TransportAnimation const * | _animationInfo |
| uint32 | _pathProgress |
| uint32 | _stateChangeTime |
| uint32 | _stateChangeProgress |
| std::vector< uint32 > | _stopFrames |
| bool | _autoCycleBetweenStopFrames |
| TimeTracker | _positionUpdateTimer |
| std::unordered_set< WorldObject * > | _passengers |
Additional Inherited Members | |
Protected Member Functions inherited from TransportBase | |
| TransportBase () | |
| virtual | ~TransportBase () |
Protected Attributes inherited from GameObjectTypeBase | |
| GameObject & | _owner |
Definition at line 144 of file GameObject.cpp.
|
inlineexplicit |
Definition at line 149 of file GameObject.cpp.
References GameObjectTypeBase::_owner, _pathProgress, _positionUpdateTimer, _stateChangeProgress, _stopFrames, GameObject::GetGOInfo(), PositionUpdateInterval, TimeTracker::Reset(), GameObjectTemplate::Timeto10thfloor, GameObjectTemplate::Timeto2ndfloor, GameObjectTemplate::Timeto3rdfloor, GameObjectTemplate::Timeto4thfloor, GameObjectTemplate::Timeto5thfloor, GameObjectTemplate::Timeto6thfloor, GameObjectTemplate::Timeto7thfloor, GameObjectTemplate::Timeto8thfloor, GameObjectTemplate::Timeto9thfloor, and GameObjectTemplate::transport.
|
inlineoverridevirtual |
Implements TransportBase.
Definition at line 450 of file GameObject.cpp.
References GameObjectTypeBase::_owner, _passengers, WorldObject::GetName(), GetTransportGUID(), MovementInfo::TransportInfo::guid, BaseEntity::IsInWorld(), WorldObject::m_movementInfo, MovementInfo::TransportInfo::pos, WorldObject::SetTransport(), TC_LOG_DEBUG, and MovementInfo::transport.
|
inlineoverridevirtual |
Implements TransportBase.
Definition at line 489 of file GameObject.cpp.
References GameObjectTypeBase::_owner, GameObject::GetGOInfo(), GameObjectTemplate::SpawnMap, and GameObjectTemplate::transport.
|
inline |
Definition at line 441 of file GameObject.cpp.
References _stopFrames.
|
inlineoverridevirtual |
This method transforms supplied global coordinates into local offsets.
Implements TransportBase.
Definition at line 484 of file GameObject.cpp.
References GameObjectTypeBase::_owner, and Position::GetPositionOffsetTo().
|
inlineoverridevirtual |
This method transforms supplied transport offsets into global coordinates.
Implements TransportBase.
Definition at line 479 of file GameObject.cpp.
References GameObjectTypeBase::_owner, and Position::GetPositionWithOffset().
|
inlineoverridevirtual |
Implements TransportBase.
Definition at line 446 of file GameObject.cpp.
References GameObjectTypeBase::_owner, and BaseEntity::GetGUID().
Referenced by AddPassenger().
|
inlineoverridevirtual |
Implements TransportBase.
Definition at line 448 of file GameObject.cpp.
References GameObjectTypeBase::_owner, and Position::GetOrientation().
|
inline |
Definition at line 433 of file GameObject.cpp.
References _animationInfo, and TransportAnimation::TotalTime.
Referenced by OnStateChanged(), and Update().
|
inlineoverridevirtual |
Reimplemented from GameObjectTypeBase.
Definition at line 422 of file GameObject.cpp.
References UpdatePassengerPositions().
|
inlineoverridevirtual |
Reimplemented from GameObjectTypeBase.
Definition at line 363 of file GameObject.cpp.
References GameObjectTypeBase::_owner, _pathProgress, _stateChangeProgress, _stateChangeTime, _stopFrames, ASSERT, GameTime::GetGameTimeMS(), GetTransportPeriod(), GO_DYNFLAG_LO_INVERTED_MOVEMENT, GO_STATE_ACTIVE, GO_STATE_TRANSPORT_ACTIVE, GO_STATE_TRANSPORT_STOPPED, MAX_GO_STATE_TRANSPORT_STOP_FRAMES, Object::RemoveDynamicFlag(), Object::SetDynamicFlag(), GameObject::SetGoState(), GameObject::SetLevel(), and GameObject::SetPathProgressForClient().
|
inlineoverridevirtual |
Implements TransportBase.
Definition at line 464 of file GameObject.cpp.
References GameObjectTypeBase::_owner, _passengers, WorldObject::GetName(), WorldObject::m_movementInfo, MovementInfo::TransportInfo::Reset(), WorldObject::SetTransport(), TC_LOG_DEBUG, Object::ToPlayer(), and MovementInfo::transport.
|
inline |
Definition at line 494 of file GameObject.cpp.
References _autoCycleBetweenStopFrames.
|
inlineoverridevirtual |
Reimplemented from GameObjectTypeBase.
Definition at line 198 of file GameObject.cpp.
References _animationInfo, _autoCycleBetweenStopFrames, GameObjectTypeBase::_owner, _pathProgress, _positionUpdateTimer, _stateChangeProgress, _stateChangeTime, _stopFrames, Map::GameObjectRelocation(), GameTime::GetGameTimeMS(), GameObject::GetGOInfo(), GameObject::GetGoState(), WorldObject::GetMap(), TransportAnimation::GetNextAnimNode(), TransportAnimation::GetNextAnimRotation(), Position::GetOrientation(), TransportAnimation::GetPrevAnimNode(), TransportAnimation::GetPrevAnimRotation(), GameObject::GetStationaryPosition(), GetTransportPeriod(), GO_DYNFLAG_LO_INVERTED_MOVEMENT, GO_STATE_TRANSPORT_ACTIVE, GO_STATE_TRANSPORT_STOPPED, Object::HasDynamicFlag(), GameObject::m_gameObjectData, TimeTracker::Passed(), TransportAnimationEntry::Pos, PositionUpdateInterval, GameObjectTemplate::Reached10thfloor, GameObjectTemplate::Reached1stfloor, GameObjectTemplate::Reached2ndfloor, GameObjectTemplate::Reached3rdfloor, GameObjectTemplate::Reached4thfloor, GameObjectTemplate::Reached5thfloor, GameObjectTemplate::Reached6thfloor, GameObjectTemplate::Reached7thfloor, GameObjectTemplate::Reached8thfloor, GameObjectTemplate::Reached9thfloor, TimeTracker::Reset(), TransportRotationEntry::Rot, GameObject::SetGoState(), GameObject::SetLocalRotation(), GameObject::SetPathProgressForClient(), TransportAnimationEntry::TimeIndex, TransportRotationEntry::TimeIndex, GameObjectTemplate::transport, GameEvents::Trigger(), TimeTracker::Update(), GameObject::UpdateModelPosition(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
|
inline |
Definition at line 427 of file GameObject.cpp.
References GameObjectTypeBase::_owner, _passengers, WorldObject::GetMap(), Position::GetPositionWithOffset(), and TransportBase::UpdatePassengerPosition().
Referenced by OnRelocated().
|
private |
Definition at line 500 of file GameObject.cpp.
Referenced by GetTransportPeriod(), and Update().
|
private |
Definition at line 505 of file GameObject.cpp.
Referenced by SetAutoCycleBetweenStopFrames(), and Update().
|
private |
Definition at line 507 of file GameObject.cpp.
Referenced by AddPassenger(), RemovePassenger(), and UpdatePassengerPositions().
|
private |
Definition at line 501 of file GameObject.cpp.
Referenced by OnStateChanged(), Transport(), and Update().
|
private |
Definition at line 506 of file GameObject.cpp.
Referenced by Transport(), and Update().
|
private |
Definition at line 503 of file GameObject.cpp.
Referenced by OnStateChanged(), Transport(), and Update().
|
private |
Definition at line 502 of file GameObject.cpp.
Referenced by OnStateChanged(), and Update().
|
private |
Definition at line 504 of file GameObject.cpp.
Referenced by GetPauseTimes(), OnStateChanged(), Transport(), and Update().
|
staticconstexpr |
Definition at line 147 of file GameObject.cpp.
Referenced by Transport(), and Update().