AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ObjectAccessor.h File Reference
#include "Define.h"
#include "GridDefines.h"
#include "Object.h"
#include <shared_mutex>

Go to the source code of this file.

Classes

class  HashMapHolder< T >
 

Namespaces

namespace  ObjectAccessor
 

Functions

WorldObject * ObjectAccessor::GetWorldObject (WorldObject const &, ObjectGuid const &guid)
 
Object * ObjectAccessor::GetObjectByTypeMask (WorldObject const &, ObjectGuid const &guid, uint32 typemask)
 
Corpse * ObjectAccessor::GetCorpse (WorldObject const &u, ObjectGuid const &guid)
 
GameObject * ObjectAccessor::GetGameObject (WorldObject const &u, ObjectGuid const &guid)
 
Transport * ObjectAccessor::GetTransport (WorldObject const &u, ObjectGuid const &guid)
 
DynamicObject * ObjectAccessor::GetDynamicObject (WorldObject const &u, ObjectGuid const &guid)
 
Unit * ObjectAccessor::GetUnit (WorldObject const &, ObjectGuid const &guid)
 
Creature * ObjectAccessor::GetCreature (WorldObject const &u, ObjectGuid const &guid)
 
Pet * ObjectAccessor::GetPet (WorldObject const &, ObjectGuid const &guid)
 
Player * ObjectAccessor::GetPlayer (Map const *, ObjectGuid const &guid)
 
Player * ObjectAccessor::GetPlayer (WorldObject const &, ObjectGuid const &guid)
 
Creature * ObjectAccessor::GetCreatureOrPetOrVehicle (WorldObject const &, ObjectGuid const &)
 
Player * ObjectAccessor::FindPlayer (ObjectGuid const guid)
 
Player * ObjectAccessor::FindPlayerByLowGUID (ObjectGuid::LowType lowguid)
 
Player * ObjectAccessor::FindConnectedPlayer (ObjectGuid const guid)
 
Player * ObjectAccessor::FindPlayerByName (std::string const &name, bool checkInWorld=true)
 
Creature * ObjectAccessor::GetSpawnedCreatureByDBGUID (uint32 mapId, uint64 guid)
 Get a spawned creature by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT.
 
GameObject * ObjectAccessor::GetSpawnedGameObjectByDBGUID (uint32 mapId, uint64 guid)
 Get a spawned gameobject by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT.
 
HashMapHolder< Player >::MapType const & ObjectAccessor::GetPlayers ()
 
template<class T >
void ObjectAccessor::AddObject (T *object)
 
template<class T >
void ObjectAccessor::RemoveObject (T *object)
 
void ObjectAccessor::SaveAllPlayers ()
 
template<>
void ObjectAccessor::AddObject (Player *player)
 
template<>
void ObjectAccessor::RemoveObject (Player *player)
 
void ObjectAccessor::UpdatePlayerNameMapReference (std::string oldname, Player *player)