![]() |
TrinityCore
|
#include <LootMgr.h>
Public Member Functions | |
| LootStore (char const *name, char const *entryName, bool ratesAllowed) | |
| virtual | ~LootStore () |
| void | Verify () const |
| uint32 | LoadAndCollectLootIds (LootIdSet &ids_set) |
| void | CheckLootRefs (LootIdSet *ref_set=nullptr) const |
| void | ReportUnusedIds (LootIdSet const &ids_set) const |
| void | ReportNonExistingId (uint32 lootId, char const *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 |
| void | ResetConditions () |
| LootTemplate * | GetLootForConditionFill (uint32 loot_id) |
| 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 |
Definition at line 257 of file LootMgr.cpp.
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::HandleReloadLootTemplatesProspectingCommand(), reload_commandscript::HandleReloadLootTemplatesSkinningCommand(), reload_commandscript::HandleReloadLootTemplatesSpellCommand(), and LoadLootTemplates_Reference().
|
protected |
Definition at line 112 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by LoadLootTable().
|
inline |
Definition at line 87 of file LootMgr.h.
Referenced by ReportUnusedIds().
| LootTemplate const * LootStore::GetLootFor | ( | uint32 | loot_id | ) | const |
Definition at line 227 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by LootTemplate::LootGroup::CheckLootRefs(), LootTemplate::CheckLootRefs(), Loot::FillLoot(), LootTemplate::HasQuestDrop(), LootTemplate::HasQuestDropForPlayer(), LootItemStorage::LoadStoredLoot(), and LootTemplate::Process().
| LootTemplate * LootStore::GetLootForConditionFill | ( | uint32 | loot_id | ) |
Definition at line 237 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by ConditionMgr::isSourceTypeValid(), and ConditionMgr::LoadConditions().
|
inline |
Definition at line 86 of file LootMgr.h.
Referenced by Loot::FillLoot(), LootStoreItem::IsValid(), LoadLootTable(), ReportNonExistingId(), ReportUnusedIds(), and LootTemplate::LootGroup::Verify().
|
inline |
Definition at line 78 of file LootMgr.h.
Referenced by Creature::AllLootRemovedFromCorpse(), Spell::CheckItems(), and ConditionMgr::isSourceTypeValid().
| bool LootStore::HaveQuestLootFor | ( | uint32 | loot_id | ) | const |
Definition at line 198 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by ObjectMgr::LoadGameObjectForQuests().
Definition at line 208 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by GameObject::ActivateToQuest().
|
inline |
Definition at line 88 of file LootMgr.h.
Referenced by Loot::FillLoot().
Definition at line 247 of file LootMgr.cpp.
References LoadLootTable(), and m_LootTemplates.
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().
|
protected |
Definition at line 129 of file LootMgr.cpp.
References Clear(), Field::GetBool(), Field::GetFloat(), GetName(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), LootStoreItem::IsValid(), m_LootTemplates, TC_LOG_ERROR, Verify(), and WorldDatabase.
Referenced by LoadAndCollectLootIds().
Definition at line 270 of file LootMgr.cpp.
References GetName(), and TC_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 |
Definition at line 263 of file LootMgr.cpp.
References GetEntryName(), GetName(), and TC_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 | ( | ) |
Definition at line 218 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by ConditionMgr::LoadConditions().
| void LootStore::Verify | ( | ) | const |
Definition at line 121 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by LoadLootTable().
|
private |
Definition at line 93 of file LootMgr.h.
Referenced by CheckLootRefs(), Clear(), GetLootFor(), GetLootForConditionFill(), HaveQuestLootFor(), HaveQuestLootForPlayer(), LoadAndCollectLootIds(), LoadLootTable(), ResetConditions(), and Verify().