TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Quest Class Reference

#include <QuestDef.h>

Public Member Functions

 Quest (Field *questRecord)
 
void LoadQuestDetails (Field *fields)
 
void LoadQuestRequestItems (Field *fields)
 
void LoadQuestOfferReward (Field *fields)
 
void LoadQuestTemplateAddon (Field *fields)
 
void LoadQuestMailSender (Field *fields)
 
uint32 GetXPReward (Player const *player) const
 
bool HasFlag (uint32 flag) const
 
void SetFlag (uint32 flag)
 
bool HasSpecialFlag (uint32 flag) const
 
void SetSpecialFlag (uint32 flag)
 
uint32 GetQuestId () const
 
uint32 GetQuestMethod () const
 
int32 GetZoneOrSort () const
 
uint32 GetMinLevel () const
 
uint32 GetMaxLevel () const
 
int32 GetQuestLevel () const
 
uint32 GetType () const
 
uint32 GetRequiredClasses () const
 
uint32 GetAllowableRaces () const
 
uint32 GetRequiredSkill () const
 
uint32 GetRequiredSkillValue () const
 
uint32 GetRepObjectiveFaction () const
 
int32 GetRepObjectiveValue () const
 
uint32 GetRepObjectiveFaction2 () const
 
int32 GetRepObjectiveValue2 () const
 
uint32 GetRequiredMinRepFaction () const
 
int32 GetRequiredMinRepValue () const
 
uint32 GetRequiredMaxRepFaction () const
 
int32 GetRequiredMaxRepValue () const
 
uint32 GetSuggestedPlayers () const
 
uint32 GetTimeAllowed () const
 
int32 GetPrevQuestId () const
 
uint32 GetNextQuestId () const
 
int32 GetExclusiveGroup () const
 
int32 GetBreadcrumbForQuestId () const
 
uint32 GetNextQuestInChain () const
 
uint32 GetCharTitleId () const
 
uint32 GetPlayersSlain () const
 
uint32 GetBonusTalents () const
 
int32 GetRewArenaPoints () const
 
uint32 GetXPId () const
 
uint32 GetSrcItemId () const
 
uint32 GetSrcItemCount () const
 
uint32 GetSrcSpell () const
 
std::string const & GetTitle () const
 
std::string const & GetDetails () const
 
std::string const & GetObjectives () const
 
std::string const & GetOfferRewardText () const
 
std::string const & GetRequestItemsText () const
 
std::string const & GetAreaDescription () const
 
std::string const & GetCompletedText () const
 
int32 GetRewOrReqMoney (Player const *player=nullptr) const
 
uint32 GetRewHonorAddition () const
 
float GetRewHonorMultiplier () const
 
uint32 GetRewMoneyMaxLevel () const
 
uint32 GetRewSpell () const
 
int32 GetRewSpellCast () const
 
uint32 GetRewMailTemplateId () const
 
uint32 GetRewMailDelaySecs () const
 
uint32 GetRewMailSenderEntry () const
 
uint32 GetPOIContinent () const
 
float GetPOIx () const
 
float GetPOIy () const
 
uint32 GetPointOpt () const
 
uint32 GetIncompleteEmote () const
 
uint32 GetCompleteEmote () const
 
bool IsRepeatable () const
 
bool IsAutoAccept () const
 
bool IsAutoComplete () const
 
uint32 GetFlags () const
 
bool IsDaily () const
 
bool IsWeekly () const
 
bool IsMonthly () const
 
bool IsSeasonal () const
 
bool IsDailyOrWeekly () const
 
bool IsRaidQuest (Difficulty difficulty) const
 
bool IsAllowedInRaid (Difficulty difficulty) const
 
bool IsDFQuest () const
 
uint32 CalculateHonorGain (uint8 level) const
 
bool CanIncreaseRewardedQuestCounters () const
 
uint32 GetReqItemsCount () const
 
uint32 GetReqCreatureOrGOcount () const
 
uint32 GetRewChoiceItemsCount () const
 
uint32 GetRewItemsCount () const
 
void SetEventIdForQuest (uint16 eventId)
 
uint16 GetEventIdForQuest () const
 
void InitializeQueryData ()
 
WorldPacket BuildQueryData (LocaleConstant loc) const
 
void BuildQuestRewards (WorldPackets::Quest::QuestRewards &rewards, Player *player, bool sendHiddenRewards=false) const
 
Trinity::unique_weak_ptr< QuestGetWeakPtr () const
 

Static Public Member Functions

static bool IsTakingQuestEnabled (uint32 questId)
 
static void AddQuestLevelToTitle (std::string &title, int32 level)
 

Public Attributes

std::string ObjectiveText [QUEST_OBJECTIVES_COUNT]
 
uint32 RequiredItemId [QUEST_ITEM_OBJECTIVES_COUNT] = { }
 
uint32 RequiredItemCount [QUEST_ITEM_OBJECTIVES_COUNT] = { }
 
uint32 ItemDrop [QUEST_SOURCE_ITEM_IDS_COUNT] = { }
 
uint32 ItemDropQuantity [QUEST_SOURCE_ITEM_IDS_COUNT] = { }
 
int32 RequiredNpcOrGo [QUEST_OBJECTIVES_COUNT] = { }
 
uint32 RequiredNpcOrGoCount [QUEST_OBJECTIVES_COUNT] = { }
 
uint32 RewardChoiceItemId [QUEST_REWARD_CHOICES_COUNT] = { }
 
uint32 RewardChoiceItemCount [QUEST_REWARD_CHOICES_COUNT] = { }
 
uint32 RewardItemId [QUEST_REWARDS_COUNT] = { }
 
uint32 RewardItemIdCount [QUEST_REWARDS_COUNT] = { }
 
uint32 RewardFactionId [QUEST_REPUTATIONS_COUNT] = { }
 
int32 RewardFactionValueId [QUEST_REPUTATIONS_COUNT] = { }
 
int32 RewardFactionValueIdOverride [QUEST_REPUTATIONS_COUNT] = { }
 
uint32 DetailsEmote [QUEST_EMOTE_COUNT] = { }
 
uint32 DetailsEmoteDelay [QUEST_EMOTE_COUNT] = { }
 
uint32 OfferRewardEmote [QUEST_EMOTE_COUNT] = { }
 
uint32 OfferRewardEmoteDelay [QUEST_EMOTE_COUNT] = { }
 
std::vector< uint32DependentPreviousQuests
 
std::vector< uint32DependentBreadcrumbQuests
 
WorldPacket QueryData [TOTAL_LOCALES]
 

Static Private Member Functions

static uint32 RoundXPValue (uint32 xp)
 

Private Attributes

uint32 _reqItemsCount = 0
 
uint32 _reqCreatureOrGOcount = 0
 
uint32 _rewChoiceItemsCount = 0
 
uint32 _rewItemsCount = 0
 
uint16 _eventIdForQuest = 0
 
uint32 _id = 0
 
uint32 _method = 0
 
int32 _zoneOrSort = 0
 
uint32 _minLevel = 0
 
int32 _level = 0
 
uint32 _type = 0
 
uint32 _allowableRaces = 0
 
uint32 _requiredFactionId1 = 0
 
int32 _requiredFactionValue1 = 0
 
uint32 _requiredFactionId2 = 0
 
int32 _requiredFactionValue2 = 0
 
uint32 _suggestedPlayers = 0
 
uint32 _timeAllowed = 0
 
uint32 _flags = 0
 
uint32 _rewardTitleId = 0
 
uint32 _requiredPlayerKills = 0
 
uint32 _rewardTalents = 0
 
int32 _rewardArenaPoints = 0
 
uint32 _rewardNextQuest = 0
 
uint32 _rewardXPDifficulty = 0
 
uint32 _startItem = 0
 
std::string _title
 
std::string _details
 
std::string _objectives
 
std::string _offerRewardText
 
std::string _requestItemsText
 
std::string _areaDescription
 
std::string _completedText
 
uint32 _rewardHonor = 0
 
float _rewardKillHonor = 0.f
 
int32 _rewardMoney = 0
 
uint32 _rewardBonusMoney = 0
 
uint32 _rewardDisplaySpell = 0
 
int32 _rewardSpell = 0
 
uint32 _poiContinent = 0
 
float _poiX = 0.f
 
float _poiY = 0.f
 
uint32 _poiPriority = 0
 
uint32 _emoteOnIncomplete = 0
 
uint32 _emoteOnComplete = 0
 
uint32 _maxLevel = 0
 
uint32 _requiredClasses = 0
 
uint32 _sourceSpellid = 0
 
int32 _prevQuestId = 0
 
uint32 _nextQuestId = 0
 
int32 _exclusiveGroup = 0
 
int32 _breadcrumbForQuestId = 0
 
uint32 _rewardMailTemplateId = 0
 
uint32 _rewardMailDelay = 0
 
uint32 _requiredSkillId = 0
 
uint32 _requiredSkillPoints = 0
 
uint32 _requiredMinRepFaction = 0
 
int32 _requiredMinRepValue = 0
 
uint32 _requiredMaxRepFaction = 0
 
int32 _requiredMaxRepValue = 0
 
uint32 _startItemCount = 0
 
uint32 _rewardMailSenderEntry = 0
 
uint32 _specialFlags = 0
 
Trinity::unique_weak_ptr< Quest_weakRef
 

Friends

class ObjectMgr
 

Detailed Description

Definition at line 206 of file QuestDef.h.

Constructor & Destructor Documentation

◆ Quest()

Quest::Quest ( Field questRecord)

Definition at line 29 of file QuestDef.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ AddQuestLevelToTitle()

void Quest::AddQuestLevelToTitle ( std::string &  title,
int32  level 
)
static

Definition at line 494 of file QuestDef.cpp.

◆ BuildQueryData()

WorldPacket Quest::BuildQueryData ( LocaleConstant  loc) const

Definition at line 382 of file QuestDef.cpp.

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

◆ BuildQuestRewards()

void Quest::BuildQuestRewards ( WorldPackets::Quest::QuestRewards rewards,
Player player,
bool  sendHiddenRewards = false 
) const

Definition at line 238 of file QuestDef.cpp.

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

◆ CalculateHonorGain()

uint32 Quest::CalculateHonorGain ( uint8  level) const

Definition at line 348 of file QuestDef.cpp.

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

◆ CanIncreaseRewardedQuestCounters()

bool Quest::CanIncreaseRewardedQuestCounters ( ) const

Definition at line 369 of file QuestDef.cpp.

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

◆ GetAllowableRaces()

uint32 Quest::GetAllowableRaces ( ) const
inline

Definition at line 237 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetAreaDescription()

std::string const & Quest::GetAreaDescription ( ) const
inline

Definition at line 268 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetBonusTalents()

uint32 Quest::GetBonusTalents ( ) const
inline

Definition at line 257 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetBreadcrumbForQuestId()

int32 Quest::GetBreadcrumbForQuestId ( ) const
inline

Definition at line 253 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetCharTitleId()

uint32 Quest::GetCharTitleId ( ) const
inline

Definition at line 255 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetCompletedText()

std::string const & Quest::GetCompletedText ( ) const
inline

Definition at line 269 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetCompleteEmote()

uint32 Quest::GetCompleteEmote ( ) const
inline

Definition at line 284 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetDetails()

std::string const & Quest::GetDetails ( ) const
inline

Definition at line 264 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetEventIdForQuest()

uint16 Quest::GetEventIdForQuest ( ) const
inline

Definition at line 328 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetExclusiveGroup()

int32 Quest::GetExclusiveGroup ( ) const
inline

Definition at line 252 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetFlags()

uint32 Quest::GetFlags ( ) const
inline

Definition at line 288 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetIncompleteEmote()

uint32 Quest::GetIncompleteEmote ( ) const
inline

Definition at line 283 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetMaxLevel()

uint32 Quest::GetMaxLevel ( ) const
inline

Definition at line 233 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetMinLevel()

uint32 Quest::GetMinLevel ( ) const
inline

Definition at line 232 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetNextQuestId()

uint32 Quest::GetNextQuestId ( ) const
inline

Definition at line 251 of file QuestDef.h.

◆ GetNextQuestInChain()

uint32 Quest::GetNextQuestInChain ( ) const
inline

Definition at line 254 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetObjectives()

std::string const & Quest::GetObjectives ( ) const
inline

Definition at line 265 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetOfferRewardText()

std::string const & Quest::GetOfferRewardText ( ) const
inline

Definition at line 266 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetPlayersSlain()

uint32 Quest::GetPlayersSlain ( ) const
inline

Definition at line 256 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetPOIContinent()

uint32 Quest::GetPOIContinent ( ) const
inline

Definition at line 279 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetPointOpt()

uint32 Quest::GetPointOpt ( ) const
inline

Definition at line 282 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetPOIx()

float Quest::GetPOIx ( ) const
inline

Definition at line 280 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetPOIy()

float Quest::GetPOIy ( ) const
inline

Definition at line 281 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetPrevQuestId()

int32 Quest::GetPrevQuestId ( ) const
inline

Definition at line 250 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetQuestId()

uint32 Quest::GetQuestId ( ) const
inline

Definition at line 229 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetQuestLevel()

int32 Quest::GetQuestLevel ( ) const
inline

Definition at line 234 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetQuestMethod()

uint32 Quest::GetQuestMethod ( ) const
inline

Definition at line 230 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRepObjectiveFaction()

uint32 Quest::GetRepObjectiveFaction ( ) const
inline

Definition at line 240 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRepObjectiveFaction2()

uint32 Quest::GetRepObjectiveFaction2 ( ) const
inline

Definition at line 242 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRepObjectiveValue()

int32 Quest::GetRepObjectiveValue ( ) const
inline

Definition at line 241 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRepObjectiveValue2()

int32 Quest::GetRepObjectiveValue2 ( ) const
inline

Definition at line 243 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetReqCreatureOrGOcount()

uint32 Quest::GetReqCreatureOrGOcount ( ) const
inline

Definition at line 323 of file QuestDef.h.

◆ GetReqItemsCount()

uint32 Quest::GetReqItemsCount ( ) const
inline

Definition at line 322 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequestItemsText()

std::string const & Quest::GetRequestItemsText ( ) const
inline

Definition at line 267 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequiredClasses()

uint32 Quest::GetRequiredClasses ( ) const
inline

Definition at line 236 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequiredMaxRepFaction()

uint32 Quest::GetRequiredMaxRepFaction ( ) const
inline

Definition at line 246 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequiredMaxRepValue()

int32 Quest::GetRequiredMaxRepValue ( ) const
inline

Definition at line 247 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequiredMinRepFaction()

uint32 Quest::GetRequiredMinRepFaction ( ) const
inline

Definition at line 244 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequiredMinRepValue()

int32 Quest::GetRequiredMinRepValue ( ) const
inline

Definition at line 245 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequiredSkill()

uint32 Quest::GetRequiredSkill ( ) const
inline

Definition at line 238 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRequiredSkillValue()

uint32 Quest::GetRequiredSkillValue ( ) const
inline

Definition at line 239 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewArenaPoints()

int32 Quest::GetRewArenaPoints ( ) const
inline

Definition at line 258 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewChoiceItemsCount()

uint32 Quest::GetRewChoiceItemsCount ( ) const
inline

Definition at line 324 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewHonorAddition()

uint32 Quest::GetRewHonorAddition ( ) const
inline

Definition at line 271 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewHonorMultiplier()

float Quest::GetRewHonorMultiplier ( ) const
inline

Definition at line 272 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewItemsCount()

uint32 Quest::GetRewItemsCount ( ) const
inline

Definition at line 325 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewMailDelaySecs()

uint32 Quest::GetRewMailDelaySecs ( ) const
inline

Definition at line 277 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewMailSenderEntry()

uint32 Quest::GetRewMailSenderEntry ( ) const
inline

Definition at line 278 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewMailTemplateId()

uint32 Quest::GetRewMailTemplateId ( ) const
inline

Definition at line 276 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewMoneyMaxLevel()

uint32 Quest::GetRewMoneyMaxLevel ( ) const

Definition at line 300 of file QuestDef.cpp.

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

◆ GetRewOrReqMoney()

int32 Quest::GetRewOrReqMoney ( Player const *  player = nullptr) const

Definition at line 287 of file QuestDef.cpp.

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

◆ GetRewSpell()

uint32 Quest::GetRewSpell ( ) const
inline

Definition at line 274 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetRewSpellCast()

int32 Quest::GetRewSpellCast ( ) const
inline

Definition at line 275 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetSrcItemCount()

uint32 Quest::GetSrcItemCount ( ) const
inline

Definition at line 261 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetSrcItemId()

uint32 Quest::GetSrcItemId ( ) const
inline

Definition at line 260 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetSrcSpell()

uint32 Quest::GetSrcSpell ( ) const
inline

Definition at line 262 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetSuggestedPlayers()

uint32 Quest::GetSuggestedPlayers ( ) const
inline

Definition at line 248 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetTimeAllowed()

uint32 Quest::GetTimeAllowed ( ) const
inline

Definition at line 249 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetTitle()

std::string const & Quest::GetTitle ( ) const
inline

Definition at line 263 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetType()

uint32 Quest::GetType ( ) const
inline

Definition at line 235 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetWeakPtr()

Trinity::unique_weak_ptr< Quest > Quest::GetWeakPtr ( ) const
inline

Definition at line 336 of file QuestDef.h.

◆ GetXPId()

uint32 Quest::GetXPId ( ) const
inline

Definition at line 259 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetXPReward()

uint32 Quest::GetXPReward ( Player const *  player) const

Definition at line 202 of file QuestDef.cpp.

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

◆ GetZoneOrSort()

int32 Quest::GetZoneOrSort ( ) const
inline

Definition at line 231 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ HasFlag()

bool Quest::HasFlag ( uint32  flag) const
inline

Definition at line 219 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ HasSpecialFlag()

bool Quest::HasSpecialFlag ( uint32  flag) const
inline

Definition at line 222 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ InitializeQueryData()

void Quest::InitializeQueryData ( )

Definition at line 376 of file QuestDef.cpp.

+ Here is the call graph for this function:

◆ IsAllowedInRaid()

bool Quest::IsAllowedInRaid ( Difficulty  difficulty) const

Definition at line 340 of file QuestDef.cpp.

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

◆ IsAutoAccept()

bool Quest::IsAutoAccept ( ) const

Definition at line 310 of file QuestDef.cpp.

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

◆ IsAutoComplete()

bool Quest::IsAutoComplete ( ) const

Definition at line 315 of file QuestDef.cpp.

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

◆ IsDaily()

bool Quest::IsDaily ( ) const
inline

Definition at line 289 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ IsDailyOrWeekly()

bool Quest::IsDailyOrWeekly ( ) const
inline

Definition at line 293 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ IsDFQuest()

bool Quest::IsDFQuest ( ) const
inline

Definition at line 296 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ IsMonthly()

bool Quest::IsMonthly ( ) const
inline

Definition at line 291 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ IsRaidQuest()

bool Quest::IsRaidQuest ( Difficulty  difficulty) const

Definition at line 320 of file QuestDef.cpp.

+ Here is the caller graph for this function:

◆ IsRepeatable()

bool Quest::IsRepeatable ( ) const
inline

Definition at line 285 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ IsSeasonal()

bool Quest::IsSeasonal ( ) const
inline

Definition at line 292 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ IsTakingQuestEnabled()

bool Quest::IsTakingQuestEnabled ( uint32  questId)
static

Definition at line 230 of file QuestDef.cpp.

+ Here is the caller graph for this function:

◆ IsWeekly()

bool Quest::IsWeekly ( ) const
inline

Definition at line 290 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ LoadQuestDetails()

void Quest::LoadQuestDetails ( Field fields)

Definition at line 123 of file QuestDef.cpp.

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

◆ LoadQuestMailSender()

void Quest::LoadQuestMailSender ( Field fields)

Definition at line 197 of file QuestDef.cpp.

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

◆ LoadQuestOfferReward()

void Quest::LoadQuestOfferReward ( Field fields)

Definition at line 154 of file QuestDef.cpp.

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

◆ LoadQuestRequestItems()

void Quest::LoadQuestRequestItems ( Field fields)

Definition at line 140 of file QuestDef.cpp.

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

◆ LoadQuestTemplateAddon()

void Quest::LoadQuestTemplateAddon ( Field fields)

Definition at line 173 of file QuestDef.cpp.

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

◆ RoundXPValue()

uint32 Quest::RoundXPValue ( uint32  xp)
staticprivate

Definition at line 504 of file QuestDef.cpp.

+ Here is the caller graph for this function:

◆ SetEventIdForQuest()

void Quest::SetEventIdForQuest ( uint16  eventId)
inline

Definition at line 327 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ SetFlag()

void Quest::SetFlag ( uint32  flag)
inline

Definition at line 220 of file QuestDef.h.

◆ SetSpecialFlag()

void Quest::SetSpecialFlag ( uint32  flag)
inline

Definition at line 223 of file QuestDef.h.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ObjectMgr

friend class ObjectMgr
friend

Definition at line 208 of file QuestDef.h.

Member Data Documentation

◆ _allowableRaces

uint32 Quest::_allowableRaces = 0
private

Definition at line 357 of file QuestDef.h.

◆ _areaDescription

std::string Quest::_areaDescription
private

Definition at line 377 of file QuestDef.h.

◆ _breadcrumbForQuestId

int32 Quest::_breadcrumbForQuestId = 0
private

Definition at line 399 of file QuestDef.h.

◆ _completedText

std::string Quest::_completedText
private

Definition at line 378 of file QuestDef.h.

◆ _details

std::string Quest::_details
private

Definition at line 373 of file QuestDef.h.

◆ _emoteOnComplete

uint32 Quest::_emoteOnComplete = 0
private

Definition at line 390 of file QuestDef.h.

◆ _emoteOnIncomplete

uint32 Quest::_emoteOnIncomplete = 0
private

Definition at line 389 of file QuestDef.h.

◆ _eventIdForQuest

uint16 Quest::_eventIdForQuest = 0
private

Definition at line 348 of file QuestDef.h.

◆ _exclusiveGroup

int32 Quest::_exclusiveGroup = 0
private

Definition at line 398 of file QuestDef.h.

◆ _flags

uint32 Quest::_flags = 0
private

Definition at line 364 of file QuestDef.h.

◆ _id

uint32 Quest::_id = 0
private

Definition at line 351 of file QuestDef.h.

◆ _level

int32 Quest::_level = 0
private

Definition at line 355 of file QuestDef.h.

◆ _maxLevel

uint32 Quest::_maxLevel = 0
private

Definition at line 393 of file QuestDef.h.

◆ _method

uint32 Quest::_method = 0
private

Definition at line 352 of file QuestDef.h.

◆ _minLevel

uint32 Quest::_minLevel = 0
private

Definition at line 354 of file QuestDef.h.

◆ _nextQuestId

uint32 Quest::_nextQuestId = 0
private

Definition at line 397 of file QuestDef.h.

◆ _objectives

std::string Quest::_objectives
private

Definition at line 374 of file QuestDef.h.

◆ _offerRewardText

std::string Quest::_offerRewardText
private

Definition at line 375 of file QuestDef.h.

◆ _poiContinent

uint32 Quest::_poiContinent = 0
private

Definition at line 385 of file QuestDef.h.

◆ _poiPriority

uint32 Quest::_poiPriority = 0
private

Definition at line 388 of file QuestDef.h.

◆ _poiX

float Quest::_poiX = 0.f
private

Definition at line 386 of file QuestDef.h.

◆ _poiY

float Quest::_poiY = 0.f
private

Definition at line 387 of file QuestDef.h.

◆ _prevQuestId

int32 Quest::_prevQuestId = 0
private

Definition at line 396 of file QuestDef.h.

◆ _reqCreatureOrGOcount

uint32 Quest::_reqCreatureOrGOcount = 0
private

Definition at line 345 of file QuestDef.h.

◆ _reqItemsCount

uint32 Quest::_reqItemsCount = 0
private

Definition at line 344 of file QuestDef.h.

◆ _requestItemsText

std::string Quest::_requestItemsText
private

Definition at line 376 of file QuestDef.h.

◆ _requiredClasses

uint32 Quest::_requiredClasses = 0
private

Definition at line 394 of file QuestDef.h.

◆ _requiredFactionId1

uint32 Quest::_requiredFactionId1 = 0
private

Definition at line 358 of file QuestDef.h.

◆ _requiredFactionId2

uint32 Quest::_requiredFactionId2 = 0
private

Definition at line 360 of file QuestDef.h.

◆ _requiredFactionValue1

int32 Quest::_requiredFactionValue1 = 0
private

Definition at line 359 of file QuestDef.h.

◆ _requiredFactionValue2

int32 Quest::_requiredFactionValue2 = 0
private

Definition at line 361 of file QuestDef.h.

◆ _requiredMaxRepFaction

uint32 Quest::_requiredMaxRepFaction = 0
private

Definition at line 406 of file QuestDef.h.

◆ _requiredMaxRepValue

int32 Quest::_requiredMaxRepValue = 0
private

Definition at line 407 of file QuestDef.h.

◆ _requiredMinRepFaction

uint32 Quest::_requiredMinRepFaction = 0
private

Definition at line 404 of file QuestDef.h.

◆ _requiredMinRepValue

int32 Quest::_requiredMinRepValue = 0
private

Definition at line 405 of file QuestDef.h.

◆ _requiredPlayerKills

uint32 Quest::_requiredPlayerKills = 0
private

Definition at line 366 of file QuestDef.h.

◆ _requiredSkillId

uint32 Quest::_requiredSkillId = 0
private

Definition at line 402 of file QuestDef.h.

◆ _requiredSkillPoints

uint32 Quest::_requiredSkillPoints = 0
private

Definition at line 403 of file QuestDef.h.

◆ _rewardArenaPoints

int32 Quest::_rewardArenaPoints = 0
private

Definition at line 368 of file QuestDef.h.

◆ _rewardBonusMoney

uint32 Quest::_rewardBonusMoney = 0
private

Definition at line 382 of file QuestDef.h.

◆ _rewardDisplaySpell

uint32 Quest::_rewardDisplaySpell = 0
private

Definition at line 383 of file QuestDef.h.

◆ _rewardHonor

uint32 Quest::_rewardHonor = 0
private

Definition at line 379 of file QuestDef.h.

◆ _rewardKillHonor

float Quest::_rewardKillHonor = 0.f
private

Definition at line 380 of file QuestDef.h.

◆ _rewardMailDelay

uint32 Quest::_rewardMailDelay = 0
private

Definition at line 401 of file QuestDef.h.

◆ _rewardMailSenderEntry

uint32 Quest::_rewardMailSenderEntry = 0
private

Definition at line 409 of file QuestDef.h.

◆ _rewardMailTemplateId

uint32 Quest::_rewardMailTemplateId = 0
private

Definition at line 400 of file QuestDef.h.

◆ _rewardMoney

int32 Quest::_rewardMoney = 0
private

Definition at line 381 of file QuestDef.h.

◆ _rewardNextQuest

uint32 Quest::_rewardNextQuest = 0
private

Definition at line 369 of file QuestDef.h.

◆ _rewardSpell

int32 Quest::_rewardSpell = 0
private

Definition at line 384 of file QuestDef.h.

◆ _rewardTalents

uint32 Quest::_rewardTalents = 0
private

Definition at line 367 of file QuestDef.h.

◆ _rewardTitleId

uint32 Quest::_rewardTitleId = 0
private

Definition at line 365 of file QuestDef.h.

◆ _rewardXPDifficulty

uint32 Quest::_rewardXPDifficulty = 0
private

Definition at line 370 of file QuestDef.h.

◆ _rewChoiceItemsCount

uint32 Quest::_rewChoiceItemsCount = 0
private

Definition at line 346 of file QuestDef.h.

◆ _rewItemsCount

uint32 Quest::_rewItemsCount = 0
private

Definition at line 347 of file QuestDef.h.

◆ _sourceSpellid

uint32 Quest::_sourceSpellid = 0
private

Definition at line 395 of file QuestDef.h.

◆ _specialFlags

uint32 Quest::_specialFlags = 0
private

Definition at line 410 of file QuestDef.h.

◆ _startItem

uint32 Quest::_startItem = 0
private

Definition at line 371 of file QuestDef.h.

◆ _startItemCount

uint32 Quest::_startItemCount = 0
private

Definition at line 408 of file QuestDef.h.

◆ _suggestedPlayers

uint32 Quest::_suggestedPlayers = 0
private

Definition at line 362 of file QuestDef.h.

◆ _timeAllowed

uint32 Quest::_timeAllowed = 0
private

Definition at line 363 of file QuestDef.h.

◆ _title

std::string Quest::_title
private

Definition at line 372 of file QuestDef.h.

◆ _type

uint32 Quest::_type = 0
private

Definition at line 356 of file QuestDef.h.

◆ _weakRef

Trinity::unique_weak_ptr<Quest> Quest::_weakRef
private

Definition at line 415 of file QuestDef.h.

◆ _zoneOrSort

int32 Quest::_zoneOrSort = 0
private

Definition at line 353 of file QuestDef.h.

◆ DependentBreadcrumbQuests

std::vector<uint32> Quest::DependentBreadcrumbQuests

Definition at line 339 of file QuestDef.h.

◆ DependentPreviousQuests

std::vector<uint32> Quest::DependentPreviousQuests

Definition at line 338 of file QuestDef.h.

◆ DetailsEmote

uint32 Quest::DetailsEmote[QUEST_EMOTE_COUNT] = { }

Definition at line 317 of file QuestDef.h.

◆ DetailsEmoteDelay

uint32 Quest::DetailsEmoteDelay[QUEST_EMOTE_COUNT] = { }

Definition at line 318 of file QuestDef.h.

◆ ItemDrop

uint32 Quest::ItemDrop[QUEST_SOURCE_ITEM_IDS_COUNT] = { }

Definition at line 306 of file QuestDef.h.

◆ ItemDropQuantity

uint32 Quest::ItemDropQuantity[QUEST_SOURCE_ITEM_IDS_COUNT] = { }

Definition at line 307 of file QuestDef.h.

◆ ObjectiveText

std::string Quest::ObjectiveText[QUEST_OBJECTIVES_COUNT]

Definition at line 302 of file QuestDef.h.

◆ OfferRewardEmote

uint32 Quest::OfferRewardEmote[QUEST_EMOTE_COUNT] = { }

Definition at line 319 of file QuestDef.h.

◆ OfferRewardEmoteDelay

uint32 Quest::OfferRewardEmoteDelay[QUEST_EMOTE_COUNT] = { }

Definition at line 320 of file QuestDef.h.

◆ QueryData

WorldPacket Quest::QueryData[TOTAL_LOCALES]

Definition at line 340 of file QuestDef.h.

◆ RequiredItemCount

uint32 Quest::RequiredItemCount[QUEST_ITEM_OBJECTIVES_COUNT] = { }

Definition at line 305 of file QuestDef.h.

◆ RequiredItemId

uint32 Quest::RequiredItemId[QUEST_ITEM_OBJECTIVES_COUNT] = { }

Definition at line 304 of file QuestDef.h.

◆ RequiredNpcOrGo

int32 Quest::RequiredNpcOrGo[QUEST_OBJECTIVES_COUNT] = { }

Definition at line 308 of file QuestDef.h.

◆ RequiredNpcOrGoCount

uint32 Quest::RequiredNpcOrGoCount[QUEST_OBJECTIVES_COUNT] = { }

Definition at line 309 of file QuestDef.h.

◆ RewardChoiceItemCount

uint32 Quest::RewardChoiceItemCount[QUEST_REWARD_CHOICES_COUNT] = { }

Definition at line 311 of file QuestDef.h.

◆ RewardChoiceItemId

uint32 Quest::RewardChoiceItemId[QUEST_REWARD_CHOICES_COUNT] = { }

Definition at line 310 of file QuestDef.h.

◆ RewardFactionId

uint32 Quest::RewardFactionId[QUEST_REPUTATIONS_COUNT] = { }

Definition at line 314 of file QuestDef.h.

◆ RewardFactionValueId

int32 Quest::RewardFactionValueId[QUEST_REPUTATIONS_COUNT] = { }

Definition at line 315 of file QuestDef.h.

◆ RewardFactionValueIdOverride

int32 Quest::RewardFactionValueIdOverride[QUEST_REPUTATIONS_COUNT] = { }

Definition at line 316 of file QuestDef.h.

◆ RewardItemId

uint32 Quest::RewardItemId[QUEST_REWARDS_COUNT] = { }

Definition at line 312 of file QuestDef.h.

◆ RewardItemIdCount

uint32 Quest::RewardItemIdCount[QUEST_REWARDS_COUNT] = { }

Definition at line 313 of file QuestDef.h.


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