Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
PoolMgr Class Reference

#include <PoolMgr.h>

Collaboration diagram for PoolMgr:

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< PoolTemplateDataPoolTemplateDataMap
typedef std::map< uint32, uint32SearchMap
typedef std::pair< uint32, uint32SearchPair

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 ()

Private Attributes

uint32 max_pool_id
SearchMap mCreatureSearchMap
SearchMap mGameobjectSearchMap
PoolGroupCreatureMap mPoolCreatureGroups
PoolGroupGameObjectMap mPoolGameobjectGroups
PoolGroupPoolMap mPoolPoolGroups
PoolGroupQuestMap mPoolQuestGroups
SearchMap mPoolSearchMap
PoolTemplateDataMap mPoolTemplate
SearchMap mQuestSearchMap
ActivePoolData mSpawnedData

Friends

class Skyfire::Singleton< PoolMgr, Skyfire::NullMutex >

Detailed Description

Definition at line 92 of file PoolMgr.h.

Member Typedef Documentation

◆ PoolGroupCreatureMap

typedef std::vector<PoolGroup<Creature> > PoolMgr::PoolGroupCreatureMap
private

Definition at line 133 of file PoolMgr.h.

◆ PoolGroupGameObjectMap

typedef std::vector<PoolGroup<GameObject> > PoolMgr::PoolGroupGameObjectMap
private

Definition at line 134 of file PoolMgr.h.

◆ PoolGroupPoolMap

typedef std::vector<PoolGroup<Pool> > PoolMgr::PoolGroupPoolMap
private

Definition at line 135 of file PoolMgr.h.

◆ PoolGroupQuestMap

typedef std::vector<PoolGroup<Quest> > PoolMgr::PoolGroupQuestMap
private

Definition at line 136 of file PoolMgr.h.

◆ PoolTemplateDataMap

typedef std::vector<PoolTemplateData> PoolMgr::PoolTemplateDataMap
private

Definition at line 132 of file PoolMgr.h.

◆ SearchMap

typedef std::map<uint32, uint32> PoolMgr::SearchMap
private

Definition at line 138 of file PoolMgr.h.

◆ SearchPair

typedef std::pair<uint32, uint32> PoolMgr::SearchPair
private

Definition at line 137 of file PoolMgr.h.

Constructor & Destructor Documentation

◆ PoolMgr()

PoolMgr::PoolMgr ( )
private

Definition at line 524 of file PoolMgr.cpp.

References max_pool_id.

Referenced by ~PoolMgr().

◆ ~PoolMgr()

PoolMgr::~PoolMgr ( )
inlineprivate

Definition at line 98 of file PoolMgr.h.

References PoolMgr().

Member Function Documentation

◆ ChangeDailyQuests()

void PoolMgr::ChangeDailyQuests ( )

Definition at line 943 of file PoolMgr.cpp.

References mPoolQuestGroups, SaveQuestsToDB(), sObjectMgr, and UpdatePool().

◆ ChangeWeeklyQuests()

void PoolMgr::ChangeWeeklyQuests ( )

Definition at line 959 of file PoolMgr.cpp.

References mPoolQuestGroups, SaveQuestsToDB(), sObjectMgr, and UpdatePool().

◆ CheckPool()

bool PoolMgr::CheckPool ( uint32 pool_id) const

◆ DespawnPool()

void PoolMgr::DespawnPool ( uint32 pool_id)

◆ Initialize()

◆ IsPartOfAPool() [1/5]

template<>
uint32 PoolMgr::IsPartOfAPool ( uint32 db_guid) const
inline

Definition at line 169 of file PoolMgr.h.

References mGameobjectSearchMap.

◆ IsPartOfAPool() [2/5]

template<>
uint32 PoolMgr::IsPartOfAPool ( uint32 db_guid) const
inline

Definition at line 158 of file PoolMgr.h.

References mCreatureSearchMap.

◆ IsPartOfAPool() [3/5]

template<typename T>
uint32 PoolMgr::IsPartOfAPool ( uint32 db_guid_or_pool_id) const

Referenced by UpdatePool().

◆ IsPartOfAPool() [4/5]

template<>
uint32 PoolMgr::IsPartOfAPool ( uint32 pool_id) const
inline

Definition at line 191 of file PoolMgr.h.

References mPoolSearchMap.

◆ IsPartOfAPool() [5/5]

template<>
uint32 PoolMgr::IsPartOfAPool ( uint32 pool_id) const
inline

Definition at line 180 of file PoolMgr.h.

References mQuestSearchMap.

◆ IsSpawnedObject()

template<typename T>
bool PoolMgr::IsSpawnedObject ( uint32 db_guid_or_pool_id) const
inline

Definition at line 111 of file PoolMgr.h.

References mSpawnedData.

Referenced by SaveQuestsToDB().

◆ LoadFromDB()

◆ LoadQuestPools()

void PoolMgr::LoadQuestPools ( )

Definition at line 914 of file PoolMgr.cpp.

◆ SaveQuestsToDB()

◆ SpawnPool() [1/6]

void PoolMgr::SpawnPool ( uint32 pool_id)

Definition at line 1010 of file PoolMgr.cpp.

References SpawnPool().

Referenced by LoadFromDB(), SpawnPool(), and UpdatePool().

◆ SpawnPool() [2/6]

template<>
void PoolMgr::SpawnPool ( uint32 pool_id,
uint32 db_guid )
private

Definition at line 987 of file PoolMgr.cpp.

References mPoolGameobjectGroups, mPoolTemplate, and mSpawnedData.

◆ SpawnPool() [3/6]

template<>
void PoolMgr::SpawnPool ( uint32 pool_id,
uint32 db_guid )
private

Definition at line 978 of file PoolMgr.cpp.

References mPoolCreatureGroups, mPoolTemplate, and mSpawnedData.

◆ SpawnPool() [4/6]

template<typename T>
void PoolMgr::SpawnPool ( uint32 pool_id,
uint32 db_guid_or_pool_id )
private

◆ SpawnPool() [5/6]

template<>
void PoolMgr::SpawnPool ( uint32 pool_id,
uint32 quest_id )
private

Definition at line 1004 of file PoolMgr.cpp.

References mPoolQuestGroups, mPoolTemplate, and mSpawnedData.

◆ SpawnPool() [6/6]

template<>
void PoolMgr::SpawnPool ( uint32 pool_id,
uint32 sub_pool_id )
private

Definition at line 996 of file PoolMgr.cpp.

References mPoolPoolGroups, mPoolTemplate, and mSpawnedData.

◆ UpdatePool()

template<typename T>
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().

◆ Skyfire::Singleton< PoolMgr, Skyfire::NullMutex >

Definition at line 85 of file PoolMgr.h.

Member Data Documentation

◆ max_pool_id

uint32 PoolMgr::max_pool_id
private

Definition at line 131 of file PoolMgr.h.

Referenced by CheckPool(), Initialize(), LoadFromDB(), and PoolMgr().

◆ mCreatureSearchMap

SearchMap PoolMgr::mCreatureSearchMap
private

Definition at line 145 of file PoolMgr.h.

Referenced by Initialize(), IsPartOfAPool(), and LoadFromDB().

◆ mGameobjectSearchMap

SearchMap PoolMgr::mGameobjectSearchMap
private

Definition at line 146 of file PoolMgr.h.

Referenced by Initialize(), IsPartOfAPool(), and LoadFromDB().

◆ mPoolCreatureGroups

PoolGroupCreatureMap PoolMgr::mPoolCreatureGroups
private

Definition at line 141 of file PoolMgr.h.

Referenced by CheckPool(), DespawnPool(), Initialize(), LoadFromDB(), and SpawnPool().

◆ mPoolGameobjectGroups

PoolGroupGameObjectMap PoolMgr::mPoolGameobjectGroups
private

Definition at line 142 of file PoolMgr.h.

Referenced by CheckPool(), DespawnPool(), Initialize(), LoadFromDB(), and SpawnPool().

◆ mPoolPoolGroups

PoolGroupPoolMap PoolMgr::mPoolPoolGroups
private

Definition at line 143 of file PoolMgr.h.

Referenced by CheckPool(), DespawnPool(), Initialize(), LoadFromDB(), and SpawnPool().

◆ mPoolQuestGroups

PoolGroupQuestMap PoolMgr::mPoolQuestGroups
private

◆ mPoolSearchMap

SearchMap PoolMgr::mPoolSearchMap
private

Definition at line 147 of file PoolMgr.h.

Referenced by IsPartOfAPool(), and LoadFromDB().

◆ mPoolTemplate

PoolTemplateDataMap PoolMgr::mPoolTemplate
private

Definition at line 140 of file PoolMgr.h.

Referenced by Initialize(), LoadFromDB(), SpawnPool(), SpawnPool(), and SpawnPool().

◆ mQuestCreatureRelation

PooledQuestRelation PoolMgr::mQuestCreatureRelation

Definition at line 124 of file PoolMgr.h.

Referenced by LoadFromDB().

◆ mQuestGORelation

PooledQuestRelation PoolMgr::mQuestGORelation

Definition at line 125 of file PoolMgr.h.

Referenced by LoadFromDB().

◆ mQuestSearchMap

SearchMap PoolMgr::mQuestSearchMap
private

Definition at line 148 of file PoolMgr.h.

Referenced by Initialize(), IsPartOfAPool(), LoadFromDB(), and SaveQuestsToDB().

◆ mSpawnedData

ActivePoolData PoolMgr::mSpawnedData
private

Definition at line 151 of file PoolMgr.h.

Referenced by DespawnPool(), IsSpawnedObject(), SpawnPool(), SpawnPool(), and SpawnPool().


The documentation for this class was generated from the following files: