diff options
author | maximius <none@none> | 2009-11-19 18:20:34 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-19 18:20:34 -0800 |
commit | 02eeffd22f10920aacd8292ed3bf52ac0d74e4a6 (patch) | |
tree | b95624af6f27fbed7c4aa0f0d2c01d768d565459 /src/game/Creature.h | |
parent | 4abed08f4d4c39ac1b0d242950753a31a7930166 (diff) |
*Add two new functions GetHomePosition() and GetRelativeAngle(x, y)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r-- | src/game/Creature.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h index 5945f441946..1ab3bdbbb62 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -702,8 +702,9 @@ class TRINITY_DLL_SPEC Creature : public Unit } void SetHomePosition(float x, float y, float z, float o) { m_homePosition.Relocate(x, y, z, o); } - void SetHomePosition(const Position &pos) { m_homePosition.Relocate(pos);} + void SetHomePosition(const Position &pos) { m_homePosition.Relocate(pos); } void GetHomePosition(float &x, float &y, float &z, float &ori) { m_homePosition.GetPosition(x, y, z, ori); } + Position GetHomePosition() { return m_homePosition; } uint32 GetGlobalCooldown() const { return m_GlobalCooldown; } |