diff options
Diffstat (limited to 'src/game/Object.h')
| -rw-r--r-- | src/game/Object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index d46abd6d263..83c2afbb880 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -372,6 +372,14 @@ class TRINITY_DLL_SPEC WorldObject : public Object void _Create( uint32 guidlow, HighGuid guidhigh, uint32 mapid, uint32 phaseMask); + void Relocate(WorldObject *obj) + { + m_positionX = obj->GetPositionX(); + m_positionY = obj->GetPositionY(); + m_positionZ = obj->GetPositionZ(); + m_orientation = obj->GetOrientation(); + } + void Relocate(float x, float y, float z, float orientation) { m_positionX = x; |
