|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <PoolMgr.h>
Public Member Functions | |
| void | ChangeDailyQuests () |
| void | ChangeWeeklyQuests () |
| bool | CheckPool (uint32 pool_id) const |
| void | DespawnPool (uint32 pool_id) |
| void | Initialize () |
| template<> | |
| uint32 | IsPartOfAPool (uint32 db_guid) const |
| template<> | |
| uint32 | IsPartOfAPool (uint32 db_guid) const |
| template<typename T> | |
| uint32 | IsPartOfAPool (uint32 db_guid_or_pool_id) const |
| template<> | |
| uint32 | IsPartOfAPool (uint32 pool_id) const |
| template<> | |
| uint32 | IsPartOfAPool (uint32 pool_id) const |
| template<typename T> | |
| bool | IsSpawnedObject (uint32 db_guid_or_pool_id) const |
| void | LoadFromDB () |
| void | LoadQuestPools () |
| void | SaveQuestsToDB () |
| void | SpawnPool (uint32 pool_id) |
| template<typename T> | |
| void | UpdatePool (uint32 pool_id, uint32 db_guid_or_pool_id) |
Public Attributes | |
| PooledQuestRelation | mQuestCreatureRelation |
| PooledQuestRelation | mQuestGORelation |
Private Types | |
| typedef std::vector< PoolGroup< Creature > > | PoolGroupCreatureMap |
| typedef std::vector< PoolGroup< GameObject > > | PoolGroupGameObjectMap |
| typedef std::vector< PoolGroup< Pool > > | PoolGroupPoolMap |
| typedef std::vector< PoolGroup< Quest > > | PoolGroupQuestMap |
| typedef std::vector< PoolTemplateData > | PoolTemplateDataMap |
| typedef std::map< uint32, uint32 > | SearchMap |
| typedef std::pair< uint32, uint32 > | SearchPair |
Private Member Functions | |
| PoolMgr () | |
| template<> | |
| void | SpawnPool (uint32 pool_id, uint32 db_guid) |
| template<> | |
| void | SpawnPool (uint32 pool_id, uint32 db_guid) |
| template<typename T> | |
| void | SpawnPool (uint32 pool_id, uint32 db_guid_or_pool_id) |
| template<> | |
| void | SpawnPool (uint32 pool_id, uint32 quest_id) |
| template<> | |
| void | SpawnPool (uint32 pool_id, uint32 sub_pool_id) |
| ~PoolMgr () | |
Friends | |
| class | Skyfire::Singleton< PoolMgr, Skyfire::NullMutex > |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void PoolMgr::ChangeDailyQuests | ( | ) |
Definition at line 943 of file PoolMgr.cpp.
References mPoolQuestGroups, SaveQuestsToDB(), sObjectMgr, and UpdatePool().
| void PoolMgr::ChangeWeeklyQuests | ( | ) |
Definition at line 959 of file PoolMgr.cpp.
References mPoolQuestGroups, SaveQuestsToDB(), sObjectMgr, and UpdatePool().
| bool PoolMgr::CheckPool | ( | uint32 | pool_id | ) | const |
Definition at line 1035 of file PoolMgr.cpp.
References max_pool_id, mPoolCreatureGroups, mPoolGameobjectGroups, mPoolPoolGroups, and mPoolQuestGroups.
Referenced by LoadFromDB().
| void PoolMgr::DespawnPool | ( | uint32 | pool_id | ) |
Definition at line 1019 of file PoolMgr.cpp.
References mPoolCreatureGroups, mPoolGameobjectGroups, mPoolPoolGroups, mPoolQuestGroups, and mSpawnedData.
| void PoolMgr::Initialize | ( | ) |
Definition at line 526 of file PoolMgr.cpp.
References Field::GetUInt32(), max_pool_id, mCreatureSearchMap, mGameobjectSearchMap, mPoolCreatureGroups, mPoolGameobjectGroups, mPoolPoolGroups, mPoolQuestGroups, mPoolTemplate, mQuestSearchMap, and WorldDatabase.
Definition at line 169 of file PoolMgr.h.
References mGameobjectSearchMap.
Definition at line 158 of file PoolMgr.h.
References mCreatureSearchMap.
Referenced by UpdatePool().
Definition at line 191 of file PoolMgr.h.
References mPoolSearchMap.
Definition at line 180 of file PoolMgr.h.
References mQuestSearchMap.
|
inline |
| void PoolMgr::LoadFromDB | ( | ) |
Definition at line 546 of file PoolMgr.cpp.
References PoolGroup< T >::AddEntry(), CheckPool(), GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_GOOBER, Field::GetFloat(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), GameObjectData::id, Quest::IsDaily(), Quest::IsDailyOrWeekly(), max_pool_id, PoolTemplateData::MaxLimit, mCreatureSearchMap, mGameobjectSearchMap, mPoolCreatureGroups, mPoolGameobjectGroups, mPoolPoolGroups, mPoolQuestGroups, mPoolSearchMap, mPoolTemplate, mQuestCreatureRelation, mQuestGORelation, mQuestSearchMap, PoolGroup< T >::SetPoolId(), SF_LOG_DEBUG, SF_LOG_ERROR, SF_LOG_INFO, sObjectMgr, SpawnPool(), GameObjectTemplate::type, WORLD_SEL_QUEST_POOLS, and WorldDatabase.
| void PoolMgr::LoadQuestPools | ( | ) |
Definition at line 914 of file PoolMgr.cpp.
| void PoolMgr::SaveQuestsToDB | ( | ) |
Definition at line 916 of file PoolMgr.cpp.
References CHAR_DEL_QUEST_POOL_SAVE, CHAR_INS_QUEST_POOL_SAVE, CharacterDatabase, IsSpawnedObject(), mPoolQuestGroups, mQuestSearchMap, and PreparedStatement::setUInt32().
Referenced by ChangeDailyQuests(), and ChangeWeeklyQuests().
| void PoolMgr::SpawnPool | ( | uint32 | pool_id | ) |
Definition at line 1010 of file PoolMgr.cpp.
References SpawnPool().
Referenced by LoadFromDB(), SpawnPool(), and UpdatePool().
Definition at line 987 of file PoolMgr.cpp.
References mPoolGameobjectGroups, mPoolTemplate, and mSpawnedData.
Definition at line 978 of file PoolMgr.cpp.
References mPoolCreatureGroups, mPoolTemplate, and mSpawnedData.
Definition at line 1004 of file PoolMgr.cpp.
References mPoolQuestGroups, mPoolTemplate, and mSpawnedData.
Definition at line 996 of file PoolMgr.cpp.
References mPoolPoolGroups, mPoolTemplate, and mSpawnedData.
| template void PoolMgr::UpdatePool< Quest > | ( | uint32 | pool_id, |
| uint32 | db_guid_or_pool_id ) |
Definition at line 1048 of file PoolMgr.cpp.
References IsPartOfAPool(), and SpawnPool().
Referenced by ChangeDailyQuests(), and ChangeWeeklyQuests().
|
friend |
|
private |
Definition at line 131 of file PoolMgr.h.
Referenced by CheckPool(), Initialize(), LoadFromDB(), and PoolMgr().
|
private |
Definition at line 145 of file PoolMgr.h.
Referenced by Initialize(), IsPartOfAPool(), and LoadFromDB().
|
private |
Definition at line 146 of file PoolMgr.h.
Referenced by Initialize(), IsPartOfAPool(), and LoadFromDB().
|
private |
Definition at line 141 of file PoolMgr.h.
Referenced by CheckPool(), DespawnPool(), Initialize(), LoadFromDB(), and SpawnPool().
|
private |
Definition at line 142 of file PoolMgr.h.
Referenced by CheckPool(), DespawnPool(), Initialize(), LoadFromDB(), and SpawnPool().
|
private |
Definition at line 143 of file PoolMgr.h.
Referenced by CheckPool(), DespawnPool(), Initialize(), LoadFromDB(), and SpawnPool().
|
private |
Definition at line 144 of file PoolMgr.h.
Referenced by ChangeDailyQuests(), ChangeWeeklyQuests(), CheckPool(), DespawnPool(), Initialize(), LoadFromDB(), SaveQuestsToDB(), and SpawnPool().
|
private |
Definition at line 147 of file PoolMgr.h.
Referenced by IsPartOfAPool(), and LoadFromDB().
|
private |
Definition at line 140 of file PoolMgr.h.
Referenced by Initialize(), LoadFromDB(), SpawnPool(), SpawnPool(), and SpawnPool().
| PooledQuestRelation PoolMgr::mQuestCreatureRelation |
Definition at line 124 of file PoolMgr.h.
Referenced by LoadFromDB().
| PooledQuestRelation PoolMgr::mQuestGORelation |
Definition at line 125 of file PoolMgr.h.
Referenced by LoadFromDB().
|
private |
Definition at line 148 of file PoolMgr.h.
Referenced by Initialize(), IsPartOfAPool(), LoadFromDB(), and SaveQuestsToDB().
|
private |
Definition at line 151 of file PoolMgr.h.
Referenced by DespawnPool(), IsSpawnedObject(), SpawnPool(), SpawnPool(), and SpawnPool().