[6812] Implement localization of creature/gameobject name that say/yell.

Original patch deeply rewrited.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
evilstar 2008-11-09 13:12:16 +03:00 committed by VladimirMangos
parent 89612654da
commit 1da8ff0043
7 changed files with 42 additions and 2 deletions

View file

@ -391,6 +391,8 @@ class MANGOS_DLL_SPEC WorldObject : public Object
const char* GetName() const { return m_name.c_str(); }
void SetName(std::string newname) { m_name=newname; }
virtual const char* GetNameForLocaleIdx(int32 /*locale_idx*/) const { return GetName(); }
float GetDistance( const WorldObject* obj ) const;
float GetDistance(const float x, const float y, const float z) const;
float GetDistance2d(const WorldObject* obj) const;