Move some grid object functions into one parent class

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-26 11:38:30 +01:00
parent 25c28cae98
commit 2fa14abf42
6 changed files with 14 additions and 20 deletions
+9
View File
@@ -448,6 +448,15 @@ class WorldLocation : public Position
uint32 m_mapId;
};
template<class T>
class GridObject
{
public:
GridReference<T> &GetGridRef() { return m_gridRef; }
protected:
GridReference<T> m_gridRef;
};
class TRINITY_DLL_SPEC WorldObject : public Object, public WorldLocation
{
public: