![]() |
TrinityCore
|
#include <QuestPools.h>
Public Member Functions | |
| QuestPoolMgr (QuestPoolMgr const &)=delete | |
| QuestPoolMgr (QuestPoolMgr &&)=delete | |
| QuestPoolMgr & | operator= (QuestPoolMgr const &)=delete |
| QuestPoolMgr & | operator= (QuestPoolMgr &&)=delete |
| 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 QuestPoolMgr * | instance () |
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 |
Definition at line 37 of file QuestPools.h.
|
privatedefault |
|
privatedefault |
|
delete |
|
delete |
|
inline |
Definition at line 52 of file QuestPools.h.
|
inline |
Definition at line 54 of file QuestPools.h.
|
inline |
Definition at line 53 of file QuestPools.h.
Definition at line 274 of file QuestPools.cpp.
References _dailyPools, _monthlyPools, and _weeklyPools.
|
static |
| bool QuestPoolMgr::IsQuestActive | ( | uint32 | questId | ) | const |
Definition at line 289 of file QuestPools.cpp.
References _poolLookup.
|
inline |
Definition at line 57 of file QuestPools.h.
| void QuestPoolMgr::LoadFromDB | ( | ) |
Definition at line 68 of file QuestPools.cpp.
References _dailyPools, _monthlyPools, _poolLookup, _weeklyPools, QuestPool::activeQuests, CHAR_DEL_POOL_QUEST_SAVE, CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), Field::GetUInt8(), Quest::IsDaily(), Quest::IsDailyOrWeekly(), Quest::IsMonthly(), Quest::IsWeekly(), QuestPool::members, QuestPool::numActive, QuestPool::poolId, RegeneratePool(), SaveToDB(), PreparedStatementBase::setUInt32(), sObjectMgr, TC_LOG_ERROR, TC_LOG_INFO, TC_LOG_WARN, and WorldDatabase.
|
delete |
|
delete |
|
private |
Definition at line 261 of file QuestPools.cpp.
References CharacterDatabase, RegeneratePool(), and SaveToDB().
|
private |
Definition at line 62 of file QuestPools.h.
Referenced by FindQuestPool(), and LoadFromDB().
|
private |
Definition at line 64 of file QuestPools.h.
Referenced by FindQuestPool(), and LoadFromDB().
Definition at line 65 of file QuestPools.h.
Referenced by IsQuestActive(), and LoadFromDB().
|
private |
Definition at line 63 of file QuestPools.h.
Referenced by FindQuestPool(), and LoadFromDB().