TrinityCore
Loading...
Searching...
No Matches
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 301 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 276 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 281 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 255 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 270 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 261 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 194 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 204 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 174 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 220 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 244 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 189 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 179 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 121 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 225 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 230 of file ObjectAccessor.cpp.

◆ GetPlayer() [2/2]

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

Definition at line 239 of file ObjectAccessor.cpp.

+ Here is the call graph for this function:

◆ GetPlayers()

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

Definition at line 286 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 199 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 184 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 209 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 102 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 308 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 291 of file ObjectAccessor.cpp.

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