diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-06-17 23:09:08 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-06-17 23:09:08 +0200 |
| commit | de740f0e76f6ebd02fcdb93a7a86260fe595d10c (patch) | |
| tree | b04c1285079fa2e86729de39e78b8c540c3d92bf /src/server/game/Entities/GameObject | |
| parent | e78a7835d6b3a9ff77254e83ecf9f5616de78a70 (diff) | |
Core/Objects: Replace separate x,y,z,o getters for stationary position with single Position
Diffstat (limited to 'src/server/game/Entities/GameObject')
| -rw-r--r-- | src/server/game/Entities/GameObject/GameObject.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h index 6c641aa1f1e..582e73efd00 100644 --- a/src/server/game/Entities/GameObject/GameObject.h +++ b/src/server/game/Entities/GameObject/GameObject.h @@ -405,12 +405,9 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject> Transport* ToTransport() { if (GetGOInfo()->type == GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT) return reinterpret_cast<Transport*>(this); else return nullptr; } Transport const* ToTransport() const { if (GetGOInfo()->type == GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT) return reinterpret_cast<Transport const*>(this); else return nullptr; } - float GetStationaryX() const override { return m_stationaryPosition.GetPositionX(); } - float GetStationaryY() const override { return m_stationaryPosition.GetPositionY(); } - float GetStationaryZ() const override { return m_stationaryPosition.GetPositionZ(); } - float GetStationaryO() const override { return m_stationaryPosition.GetOrientation(); } - Position const& GetStationaryPosition() const { return m_stationaryPosition; } + Position const& GetStationaryPosition() const override { return m_stationaryPosition; } void RelocateStationaryPosition(float x, float y, float z, float o) { m_stationaryPosition.Relocate(x, y, z, o); } + void RelocateStationaryPosition(Position const& pos) { m_stationaryPosition.Relocate(pos); } void AfterRelocation(); |
