TrinityCore
QuestPoolMgr Class Reference

#include <QuestPools.h>

Public Member Functions

void LoadFromDB ()
 
void ChangeDailyQuests ()
 
void ChangeWeeklyQuests ()
 
void ChangeMonthlyQuests ()
 
QuestPool const * FindQuestPool (uint32 poolId) const
 
bool IsQuestPooled (uint32 questId) const
 
bool IsQuestActive (uint32 questId) const
 

Static Public Member Functions

static QuestPoolMgrinstance ()
 

Private Member Functions

 QuestPoolMgr ()
 
 ~QuestPoolMgr ()
 
void Regenerate (std::vector< QuestPool > &pools)
 

Private Attributes

std::vector< QuestPool_dailyPools
 
std::vector< QuestPool_weeklyPools
 
std::vector< QuestPool_monthlyPools
 
std::unordered_map< uint32, QuestPool * > _poolLookup
 

Detailed Description

Definition at line 37 of file QuestPools.h.

Constructor & Destructor Documentation

◆ QuestPoolMgr()

QuestPoolMgr::QuestPoolMgr ( )
inlineprivate

Definition at line 40 of file QuestPools.h.

◆ ~QuestPoolMgr()

QuestPoolMgr::~QuestPoolMgr ( )
inlineprivate

Definition at line 41 of file QuestPools.h.

Member Function Documentation

◆ ChangeDailyQuests()

void QuestPoolMgr::ChangeDailyQuests ( )
inline

Definition at line 47 of file QuestPools.h.

◆ ChangeMonthlyQuests()

void QuestPoolMgr::ChangeMonthlyQuests ( )
inline

Definition at line 49 of file QuestPools.h.

◆ ChangeWeeklyQuests()

void QuestPoolMgr::ChangeWeeklyQuests ( )
inline

Definition at line 48 of file QuestPools.h.

◆ FindQuestPool()

QuestPool const * QuestPoolMgr::FindQuestPool ( uint32  poolId) const

Definition at line 271 of file QuestPools.cpp.

◆ instance()

QuestPoolMgr * QuestPoolMgr::instance ( )
static

Definition at line 28 of file QuestPools.cpp.

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

◆ IsQuestActive()

bool QuestPoolMgr::IsQuestActive ( uint32  questId) const

Definition at line 286 of file QuestPools.cpp.

◆ IsQuestPooled()

bool QuestPoolMgr::IsQuestPooled ( uint32  questId) const
inline

Definition at line 52 of file QuestPools.h.

◆ LoadFromDB()

void QuestPoolMgr::LoadFromDB ( )

Definition at line 65 of file QuestPools.cpp.

+ Here is the call graph for this function:

◆ Regenerate()

void QuestPoolMgr::Regenerate ( std::vector< QuestPool > &  pools)
private

Definition at line 258 of file QuestPools.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _dailyPools

std::vector<QuestPool> QuestPoolMgr::_dailyPools
private

Definition at line 57 of file QuestPools.h.

◆ _monthlyPools

std::vector<QuestPool> QuestPoolMgr::_monthlyPools
private

Definition at line 59 of file QuestPools.h.

◆ _poolLookup

std::unordered_map<uint32, QuestPool*> QuestPoolMgr::_poolLookup
private

Definition at line 60 of file QuestPools.h.

◆ _weeklyPools

std::vector<QuestPool> QuestPoolMgr::_weeklyPools
private

Definition at line 58 of file QuestPools.h.


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