![]() |
TrinityCore
|
#include <PoolMgr.h>
Public Member Functions | |
| void | LoadFromDB () |
| void | Initialize () |
| template<typename T > | |
| uint32 | IsPartOfAPool (uint32 db_guid_or_pool_id) const |
| uint32 | IsPartOfAPool (SpawnObjectType type, ObjectGuid::LowType spawnId) const |
| template<typename T > | |
| bool | IsSpawnedObject (uint32 db_guid_or_pool_id) const |
| bool | CheckPool (uint32 pool_id) const |
| void | SpawnPool (uint32 pool_id) |
| void | DespawnPool (uint32 pool_id, bool alwaysDeleteRespawnTime=false) |
| template<typename T > | |
| void | UpdatePool (uint32 pool_id, uint32 db_guid_or_pool_id) |
| void | UpdatePool (uint32 pool_id, SpawnObjectType type, ObjectGuid::LowType spawnId) |
| template<> | |
| uint32 | IsPartOfAPool (uint32 db_guid) const |
| template<> | |
| uint32 | IsPartOfAPool (uint32 db_guid) const |
| template<> | |
| uint32 | IsPartOfAPool (uint32 pool_id) const |
Static Public Member Functions | |
| static PoolMgr * | instance () |
Private Types | |
| typedef std::unordered_map< uint32, PoolTemplateData > | PoolTemplateDataMap |
| typedef std::unordered_map< uint32, PoolGroup< Creature > > | PoolGroupCreatureMap |
| typedef std::unordered_map< uint32, PoolGroup< GameObject > > | PoolGroupGameObjectMap |
| typedef std::unordered_map< uint32, PoolGroup< Pool > > | PoolGroupPoolMap |
| typedef std::pair< uint32, uint32 > | SearchPair |
| typedef std::map< uint32, uint32 > | SearchMap |
Private Member Functions | |
| PoolMgr () | |
| ~PoolMgr () | |
| template<typename T > | |
| void | SpawnPool (uint32 pool_id, uint32 db_guid_or_pool_id) |
| template<> | |
| void | SpawnPool (uint32 pool_id, uint32 db_guid) |
| template<> | |
| void | SpawnPool (uint32 pool_id, uint32 db_guid) |
| template<> | |
| void | SpawnPool (uint32 pool_id, uint32 sub_pool_id) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 402 of file PoolMgr.cpp.
| bool PoolMgr::CheckPool | ( | uint32 | pool_id | ) | const |
Definition at line 786 of file PoolMgr.cpp.
References mPoolCreatureGroups, mPoolGameobjectGroups, and mPoolPoolGroups.
Referenced by LoadFromDB().
| void PoolMgr::DespawnPool | ( | uint32 | pool_id, |
| bool | alwaysDeleteRespawnTime = false |
||
| ) |
Definition at line 751 of file PoolMgr.cpp.
References mPoolCreatureGroups, mPoolGameobjectGroups, mPoolPoolGroups, and mSpawnedData.
| void PoolMgr::Initialize | ( | ) |
Definition at line 404 of file PoolMgr.cpp.
References mCreatureSearchMap, and mGameobjectSearchMap.
|
static |
| uint32 PoolMgr::IsPartOfAPool | ( | SpawnObjectType | type, |
| ObjectGuid::LowType | spawnId | ||
| ) | const |
Definition at line 771 of file PoolMgr.cpp.
References ABORT_MSG, SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
Definition at line 152 of file PoolMgr.h.
References mCreatureSearchMap.
Definition at line 163 of file PoolMgr.h.
References mGameobjectSearchMap.
Definition at line 174 of file PoolMgr.h.
References mPoolSearchMap.
|
inline |
| void PoolMgr::LoadFromDB | ( | ) |
Definition at line 416 of file PoolMgr.cpp.
References PoolGroup< T >::AddEntry(), ASSERT, CheckPool(), GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_GOOBER, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), SpawnData::id, PoolTemplateData::MaxLimit, mCreatureSearchMap, mGameobjectSearchMap, mPoolCreatureGroups, mPoolGameobjectGroups, mPoolPoolGroups, mPoolSearchMap, mPoolTemplate, PoolGroup< T >::SetPoolId(), sObjectMgr, SpawnPool(), TC_LOG_DEBUG, TC_LOG_ERROR, TC_LOG_INFO, GameObjectTemplate::type, and WorldDatabase.
| void PoolMgr::SpawnPool | ( | uint32 | pool_id | ) |
Definition at line 743 of file PoolMgr.cpp.
Referenced by LoadFromDB().
Definition at line 716 of file PoolMgr.cpp.
References mPoolCreatureGroups, mPoolTemplate, and mSpawnedData.
Definition at line 726 of file PoolMgr.cpp.
References mPoolGameobjectGroups, mPoolTemplate, and mSpawnedData.
Definition at line 736 of file PoolMgr.cpp.
References mPoolPoolGroups, mPoolTemplate, and mSpawnedData.
| void PoolMgr::UpdatePool | ( | uint32 | pool_id, |
| SpawnObjectType | type, | ||
| ObjectGuid::LowType | spawnId | ||
| ) |
Definition at line 822 of file PoolMgr.cpp.
References ABORT_MSG, SPAWN_TYPE_CREATURE, and SPAWN_TYPE_GAMEOBJECT.
| template void PoolMgr::UpdatePool< Creature > | ( | uint32 | pool_id, |
| uint32 | db_guid_or_pool_id | ||
| ) |
Definition at line 810 of file PoolMgr.cpp.
|
private |
Definition at line 140 of file PoolMgr.h.
Referenced by Initialize(), IsPartOfAPool(), and LoadFromDB().
|
private |
Definition at line 141 of file PoolMgr.h.
Referenced by Initialize(), IsPartOfAPool(), and LoadFromDB().
|
private |
Definition at line 137 of file PoolMgr.h.
Referenced by CheckPool(), DespawnPool(), LoadFromDB(), and SpawnPool().
|
private |
Definition at line 138 of file PoolMgr.h.
Referenced by CheckPool(), DespawnPool(), LoadFromDB(), and SpawnPool().
|
private |
Definition at line 139 of file PoolMgr.h.
Referenced by CheckPool(), DespawnPool(), LoadFromDB(), and SpawnPool().
|
private |
Definition at line 142 of file PoolMgr.h.
Referenced by IsPartOfAPool(), and LoadFromDB().
|
private |
Definition at line 136 of file PoolMgr.h.
Referenced by LoadFromDB(), SpawnPool(), and SpawnPool().
|
private |
Definition at line 145 of file PoolMgr.h.
Referenced by DespawnPool(), SpawnPool(), and SpawnPool().