*Remove some invalid template functions.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-10 17:56:42 -05:00
1 parent 7f5a9de703
commit c106914e94
2 files changed
+1 -12

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ class TRINITY_DLL_SPEC Object
public:
virtual ~Object ( );
const bool& IsInWorld() const { return m_inWorld; }
const bool IsInWorld() const { return m_inWorld; }
virtual void AddToWorld()
{
if(m_inWorld)
-11
View File
@@ -164,22 +164,11 @@ class TRINITY_DLL_DECL ObjectAccessor : public Trinity::Singleton<ObjectAccessor
return HashMapHolder<Creature>::GetContainer();
}
HashMapHolder<Unit>::MapType& GetUnits()
{
return HashMapHolder<Unit>::GetContainer();
}
HashMapHolder<GameObject>::MapType& GetGameObjects()
{
return HashMapHolder<GameObject>::GetContainer();
}
// note: possibly very heavy
HashMapHolder<WorldObject>::MapType& GetWorldObjects()
{
return HashMapHolder<WorldObject>::GetContainer();
}
template<class T> void AddObject(T *object)
{
HashMapHolder<T>::Insert(object);