TrinityCore
ObjectAccessor Namespace Reference

Functions

TC_GAME_API WorldObjectGetWorldObject (WorldObject const &, ObjectGuid const &)
 
TC_GAME_API ObjectGetObjectByTypeMask (WorldObject const &, ObjectGuid const &, uint32 typemask)
 
TC_GAME_API CorpseGetCorpse (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API GameObjectGetGameObject (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API TransportGetTransport (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API DynamicObjectGetDynamicObject (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API AreaTriggerGetAreaTrigger (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API SceneObjectGetSceneObject (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API ConversationGetConversation (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API UnitGetUnit (WorldObject const &, ObjectGuid const &guid)
 
TC_GAME_API CreatureGetCreature (WorldObject const &u, ObjectGuid const &guid)
 
TC_GAME_API PetGetPet (WorldObject const &, ObjectGuid const &guid)
 
TC_GAME_API PlayerGetPlayer (Map const *, ObjectGuid const &guid)
 
TC_GAME_API PlayerGetPlayer (WorldObject const &, ObjectGuid const &guid)
 
TC_GAME_API CreatureGetCreatureOrPetOrVehicle (WorldObject const &, ObjectGuid const &)
 
TC_GAME_API PlayerFindPlayer (ObjectGuid const &)
 
TC_GAME_API PlayerFindPlayerByName (std::string_view name)
 
TC_GAME_API PlayerFindPlayerByLowGUID (ObjectGuid::LowType lowguid)
 
TC_GAME_API PlayerFindConnectedPlayer (ObjectGuid const &)
 
TC_GAME_API PlayerFindConnectedPlayerByName (std::string_view name)
 
TC_GAME_API HashMapHolder< Player >::MapType const & GetPlayers ()
 
template<class T >
void AddObject (T *object)
 
template<class T >
void RemoveObject (T *object)
 
template<>
void AddObject (Player *player)
 
template<>
void RemoveObject (Player *player)
 
TC_GAME_API void SaveAllPlayers ()
 

Function Documentation

◆ AddObject() [1/2]

template<>
void ObjectAccessor::AddObject ( Player player)

Definition at line 298 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:

◆ AddObject() [2/2]

template<class T >
void ObjectAccessor::AddObject ( T *  object)

Definition at line 94 of file ObjectAccessor.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindConnectedPlayer()

Player * ObjectAccessor::FindConnectedPlayer ( ObjectGuid const &  guid)

Definition at line 273 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindConnectedPlayerByName()

Player * ObjectAccessor::FindConnectedPlayerByName ( std::string_view  name)

Definition at line 278 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindPlayer()

Player * ObjectAccessor::FindPlayer ( ObjectGuid const &  guid)

Definition at line 252 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindPlayerByLowGUID()

Player * ObjectAccessor::FindPlayerByLowGUID ( ObjectGuid::LowType  lowguid)

Definition at line 267 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindPlayerByName()

Player * ObjectAccessor::FindPlayerByName ( std::string_view  name)

Definition at line 258 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAreaTrigger()

AreaTrigger * ObjectAccessor::GetAreaTrigger ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 191 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetConversation()

Conversation * ObjectAccessor::GetConversation ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 201 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCorpse()

Corpse * ObjectAccessor::GetCorpse ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 171 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreature()

Creature * ObjectAccessor::GetCreature ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 217 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:

◆ GetCreatureOrPetOrVehicle()

Creature * ObjectAccessor::GetCreatureOrPetOrVehicle ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 241 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDynamicObject()

DynamicObject * ObjectAccessor::GetDynamicObject ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 186 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGameObject()

GameObject * ObjectAccessor::GetGameObject ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 176 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetObjectByTypeMask()

Object * ObjectAccessor::GetObjectByTypeMask ( WorldObject const &  p,
ObjectGuid const &  guid,
uint32  typemask 
)

Definition at line 120 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPet()

Pet * ObjectAccessor::GetPet ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 222 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPlayer() [1/2]

Player * ObjectAccessor::GetPlayer ( Map const *  m,
ObjectGuid const &  guid 
)

Definition at line 227 of file ObjectAccessor.cpp.

◆ GetPlayer() [2/2]

Player * ObjectAccessor::GetPlayer ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 236 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:

◆ GetPlayers()

HashMapHolder< Player >::MapType const & ObjectAccessor::GetPlayers ( )

Definition at line 283 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSceneObject()

SceneObject * ObjectAccessor::GetSceneObject ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 196 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTransport()

Transport * ObjectAccessor::GetTransport ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 181 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnit()

Unit * ObjectAccessor::GetUnit ( WorldObject const &  u,
ObjectGuid const &  guid 
)

Definition at line 206 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:

◆ GetWorldObject()

WorldObject * ObjectAccessor::GetWorldObject ( WorldObject const &  p,
ObjectGuid const &  guid 
)

Definition at line 101 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveObject() [1/2]

template<>
void ObjectAccessor::RemoveObject ( Player player)

Definition at line 305 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:

◆ RemoveObject() [2/2]

template<class T >
void ObjectAccessor::RemoveObject ( T *  object)

Definition at line 100 of file ObjectAccessor.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveAllPlayers()

void ObjectAccessor::SaveAllPlayers ( )

Definition at line 288 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: