aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.h3
-rw-r--r--src/game/Object.h1
2 files changed, 3 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; }
diff --git a/src/game/Object.h b/src/game/Object.h
index efc5e8c18d2..826775500d2 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -408,6 +408,7 @@ struct TRINITY_DLL_SPEC Position
float GetAngle(const Position *pos) const;
float GetAngle(float x, float y) const;
float GetRelativeAngle(const Position *pos) const { return GetAngle(pos) - m_orientation; }
+ float GetRelativeAngle(float x, float y) const { return GetAngle(x, y) - m_orientation; }
void GetSinCos(float x, float y, float &vsin, float &vcos) const;
bool IsInDist2d(float x, float y, float dist) const