AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "LootMgr.h"
Public Member Functions | |
LootStore (char const *name, char const *entryName, bool ratesAllowed) | |
virtual | ~LootStore () |
uint32 | LoadAndCollectLootIds (LootIdSet &ids_set) |
void | ResetConditions () |
void | Verify () const |
void | CheckLootRefs (LootIdSet *ref_set=nullptr) const |
void | ReportUnusedIds (LootIdSet const &ids_set) const |
void | ReportNonExistingId (uint32 lootId) const |
void | ReportNonExistingId (uint32 lootId, const char *ownerType, uint32 ownerId) const |
bool | HaveLootFor (uint32 loot_id) const |
bool | HaveQuestLootFor (uint32 loot_id) const |
bool | HaveQuestLootForPlayer (uint32 loot_id, Player const *player) const |
LootTemplate const * | GetLootFor (uint32 loot_id) const |
LootTemplate * | GetLootForConditionFill (uint32 loot_id) const |
char const * | GetName () const |
char const * | GetEntryName () const |
bool | IsRatesAllowed () const |
Protected Member Functions | |
uint32 | LoadLootTable () |
void | Clear () |
Private Attributes | |
LootTemplateMap | m_LootTemplates |
char const * | m_name |
char const * | m_entryName |
bool | m_ratesAllowed |
|
inlineexplicit |
void LootStore::CheckLootRefs | ( | LootIdSet * | ref_set = nullptr | ) | const |
References m_LootTemplates.
Referenced by reload_commandscript::HandleReloadLootTemplatesCreatureCommand(), reload_commandscript::HandleReloadLootTemplatesDisenchantCommand(), reload_commandscript::HandleReloadLootTemplatesFishingCommand(), reload_commandscript::HandleReloadLootTemplatesGameobjectCommand(), reload_commandscript::HandleReloadLootTemplatesItemCommand(), reload_commandscript::HandleReloadLootTemplatesMailCommand(), reload_commandscript::HandleReloadLootTemplatesMillingCommand(), reload_commandscript::HandleReloadLootTemplatesPickpocketingCommand(), reload_commandscript::HandleReloadLootTemplatesPlayerCommand(), reload_commandscript::HandleReloadLootTemplatesProspectingCommand(), reload_commandscript::HandleReloadLootTemplatesSkinningCommand(), reload_commandscript::HandleReloadLootTemplatesSpellCommand(), and LoadLootTemplates_Reference().
|
protected |
References m_LootTemplates.
Referenced by LoadLootTable(), and ~LootStore().
|
inline |
LootTemplate const * LootStore::GetLootFor | ( | uint32 | loot_id | ) | const |
References m_LootTemplates.
Referenced by LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), LootTemplate::CopyConditions(), Loot::FillLoot(), LootItemStorage::LoadStoredLoot(), LootTemplate::Process(), and LootTemplate::LootGroup::Process().
LootTemplate * LootStore::GetLootForConditionFill | ( | uint32 | loot_id | ) | const |
References m_LootTemplates.
Referenced by ConditionMgr::isSourceTypeValid(), and ConditionMgr::LoadConditions().
|
inline |
References m_name.
Referenced by Loot::FillLoot(), LootStoreItem::IsValid(), LoadLootTable(), ReportNonExistingId(), ReportUnusedIds(), and LootTemplate::LootGroup::Verify().
|
inline |
References m_LootTemplates.
Referenced by Creature::AllLootRemovedFromCorpse(), Spell::CheckItems(), SpellInfo::CheckTarget(), and ConditionMgr::isSourceTypeValid().
bool LootStore::HaveQuestLootFor | ( | uint32 | loot_id | ) | const |
References m_LootTemplates.
Referenced by ObjectMgr::LoadGameObjectForQuests().
References m_LootTemplates.
Referenced by GameObject::ActivateToQuest().
|
inline |
References m_ratesAllowed.
Referenced by LootTemplate::Process(), and LootTemplate::LootGroup::Process().
References LoadLootTable(), and m_LootTemplates.
Referenced by LoadLootTemplates_Creature(), LoadLootTemplates_Disenchant(), LoadLootTemplates_Fishing(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Item(), LoadLootTemplates_Mail(), LoadLootTemplates_Milling(), LoadLootTemplates_Pickpocketing(), LoadLootTemplates_Player(), LoadLootTemplates_Prospecting(), LoadLootTemplates_Reference(), LoadLootTemplates_Skinning(), and LoadLootTemplates_Spell().
|
protected |
References Clear(), Field::Get(), GetName(), LootStoreItem::IsValid(), LOG_ERROR, m_LootTemplates, Verify(), and WorldDatabase.
Referenced by LoadAndCollectLootIds().
void LootStore::ReportNonExistingId | ( | uint32 | lootId | ) | const |
References GetName(), and LOG_ERROR.
Referenced by LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), LoadLootTemplates_Creature(), LoadLootTemplates_Disenchant(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Pickpocketing(), LoadLootTemplates_Skinning(), and LoadLootTemplates_Spell().
void LootStore::ReportUnusedIds | ( | LootIdSet const & | ids_set | ) | const |
References GetEntryName(), GetName(), and LOG_ERROR.
Referenced by LoadLootTemplates_Creature(), LoadLootTemplates_Disenchant(), LoadLootTemplates_Fishing(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Item(), LoadLootTemplates_Mail(), LoadLootTemplates_Milling(), LoadLootTemplates_Pickpocketing(), LoadLootTemplates_Prospecting(), LoadLootTemplates_Reference(), LoadLootTemplates_Skinning(), and LoadLootTemplates_Spell().
void LootStore::ResetConditions | ( | ) |
References m_LootTemplates.
Referenced by ConditionMgr::LoadConditions().
void LootStore::Verify | ( | ) | const |
References m_LootTemplates.
Referenced by LoadLootTable().
|
private |
Referenced by GetEntryName().
|
private |
|
private |
Referenced by GetName().
|
private |
Referenced by IsRatesAllowed().