*Add two new functions GetHomePosition() and GetRelativeAngle(x, y)

--HG--
branch : trunk
This commit is contained in:
maximius
2009-11-19 18:20:34 -08:00
parent 4abed08f4d
commit 02eeffd22f
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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; }