![]() |
TrinityCore
|
#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 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.
|
inlineprivate |
Definition at line 40 of file QuestPools.h.
|
inlineprivate |
Definition at line 41 of file QuestPools.h.
|
inline |
Definition at line 47 of file QuestPools.h.
|
inline |
Definition at line 49 of file QuestPools.h.
|
inline |
Definition at line 48 of file QuestPools.h.
Definition at line 272 of file QuestPools.cpp.
References _dailyPools, _monthlyPools, and _weeklyPools.
|
static |
| bool QuestPoolMgr::IsQuestActive | ( | uint32 | questId | ) | const |
Definition at line 287 of file QuestPools.cpp.
References _poolLookup.
|
inline |
Definition at line 52 of file QuestPools.h.
| void QuestPoolMgr::LoadFromDB | ( | ) |
Definition at line 66 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.
|
private |
Definition at line 259 of file QuestPools.cpp.
References CharacterDatabase, RegeneratePool(), and SaveToDB().
|
private |
Definition at line 57 of file QuestPools.h.
Referenced by FindQuestPool(), and LoadFromDB().
|
private |
Definition at line 59 of file QuestPools.h.
Referenced by FindQuestPool(), and LoadFromDB().
Definition at line 60 of file QuestPools.h.
Referenced by IsQuestActive(), and LoadFromDB().
|
private |
Definition at line 58 of file QuestPools.h.
Referenced by FindQuestPool(), and LoadFromDB().