|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <LootMgr.h>
Public Member Functions | |
| void | CheckLootRefs (LootIdSet *ref_set=NULL) const |
| char const * | GetEntryName () const |
| LootTemplate const * | GetLootFor (uint32 loot_id) const |
| LootTemplate * | GetLootForConditionFill (uint32 loot_id) |
| char const * | GetName () const |
| bool | HaveLootFor (uint32 loot_id) const |
| bool | HaveQuestLootFor (uint32 loot_id) const |
| bool | HaveQuestLootForPlayer (uint32 loot_id, Player *player) const |
| bool | IsRatesAllowed () const |
| uint32 | LoadAndCollectLootIds (LootIdSet &ids_set) |
| LootStore (char const *name, char const *entryName, bool ratesAllowed) | |
| void | ReportNotExistedId (uint32 id) const |
| void | ReportUnusedIds (LootIdSet const &ids_set) const |
| void | ResetConditions () |
| void | Verify () const |
| virtual | ~LootStore () |
Protected Member Functions | |
| void | Clear () |
| uint32 | LoadLootTable () |
Private Attributes | |
| char const * | m_entryName |
| LootTemplateMap | m_LootTemplates |
| char const * | m_name |
| bool | m_ratesAllowed |
|
inlineexplicit |
Definition at line 178 of file LootMgr.h.
References m_entryName, m_name, and m_ratesAllowed.
|
inlinevirtual |
| void LootStore::CheckLootRefs | ( | LootIdSet * | ref_set = NULL | ) | const |
Definition at line 247 of file LootMgr.cpp.
References m_LootTemplates.
|
protected |
Definition at line 99 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by LoadLootTable(), and ~LootStore().
|
inline |
Definition at line 199 of file LootMgr.h.
References m_entryName.
Referenced by ReportNotExistedId(), and ReportUnusedIds().
| LootTemplate const * LootStore::GetLootFor | ( | uint32 | loot_id | ) | const |
Definition at line 217 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by Loot::FillLoot().
| LootTemplate * LootStore::GetLootForConditionFill | ( | uint32 | loot_id | ) |
Definition at line 227 of file LootMgr.cpp.
References m_LootTemplates.
|
inline |
Definition at line 198 of file LootMgr.h.
References m_name.
Referenced by Loot::FillLoot(), LootStoreItem::IsValid(), LoadLootTable(), ReportNotExistedId(), ReportUnusedIds(), and LootTemplate::LootGroup::Verify().
|
inline |
Definition at line 190 of file LootMgr.h.
References m_LootTemplates.
| bool LootStore::HaveQuestLootFor | ( | uint32 | loot_id | ) | const |
Definition at line 188 of file LootMgr.cpp.
References m_LootTemplates.
Definition at line 198 of file LootMgr.cpp.
References m_LootTemplates.
|
inline |
Definition at line 200 of file LootMgr.h.
References m_ratesAllowed.
Referenced by Loot::FillLoot().
Definition at line 237 of file LootMgr.cpp.
References LoadLootTable(), and m_LootTemplates.
|
protected |
Definition at line 116 of file LootMgr.cpp.
References Clear(), Field::GetFloat(), Field::GetInt32(), GetName(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), LootStoreItem::IsValid(), m_LootTemplates, SF_LOG_ERROR, Verify(), and WorldDatabase.
Referenced by LoadAndCollectLootIds().
| void LootStore::ReportNotExistedId | ( | uint32 | id | ) | const |
Definition at line 260 of file LootMgr.cpp.
References GetEntryName(), GetName(), and SF_LOG_ERROR.
| void LootStore::ReportUnusedIds | ( | LootIdSet const & | ids_set | ) | const |
Definition at line 253 of file LootMgr.cpp.
References GetEntryName(), GetName(), and SF_LOG_ERROR.
| void LootStore::ResetConditions | ( | ) |
Definition at line 208 of file LootMgr.cpp.
References m_LootTemplates.
| void LootStore::Verify | ( | ) | const |
Definition at line 108 of file LootMgr.cpp.
References m_LootTemplates.
Referenced by LoadLootTable().
|
private |
Definition at line 207 of file LootMgr.h.
Referenced by GetEntryName(), and LootStore().
|
private |
Definition at line 205 of file LootMgr.h.
Referenced by CheckLootRefs(), Clear(), GetLootFor(), GetLootForConditionFill(), HaveLootFor(), HaveQuestLootFor(), HaveQuestLootForPlayer(), LoadAndCollectLootIds(), LoadLootTable(), ResetConditions(), and Verify().
|
private |
Definition at line 206 of file LootMgr.h.
Referenced by GetName(), and LootStore().
|
private |
Definition at line 208 of file LootMgr.h.
Referenced by IsRatesAllowed(), and LootStore().