TrinityCore
LootStore Class Reference

#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) 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
 
LootTemplateGetLootForConditionFill (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
 

Detailed Description

Definition at line 67 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStore()

LootStore::LootStore ( char const *  name,
char const *  entryName,
bool  ratesAllowed 
)
inlineexplicit

Definition at line 70 of file LootMgr.h.

◆ ~LootStore()

virtual LootStore::~LootStore ( )
inlinevirtual

Definition at line 73 of file LootMgr.h.

Member Function Documentation

◆ CheckLootRefs()

void LootStore::CheckLootRefs ( LootIdSet ref_set = nullptr) const

Definition at line 249 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ Clear()

void LootStore::Clear ( )
protected

Definition at line 113 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ GetEntryName()

char const * LootStore::GetEntryName ( ) const
inline

Definition at line 91 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ GetLootFor()

LootTemplate const * LootStore::GetLootFor ( uint32  loot_id) const

Definition at line 219 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ GetLootForConditionFill()

LootTemplate * LootStore::GetLootForConditionFill ( uint32  loot_id)

Definition at line 229 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ GetName()

char const * LootStore::GetName ( ) const
inline

Definition at line 90 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ HaveLootFor()

bool LootStore::HaveLootFor ( uint32  loot_id) const
inline

Definition at line 83 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ HaveQuestLootFor()

bool LootStore::HaveQuestLootFor ( uint32  loot_id) const

Definition at line 199 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ HaveQuestLootForPlayer()

bool LootStore::HaveQuestLootForPlayer ( uint32  loot_id,
Player const *  player 
) const

Definition at line 209 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ IsRatesAllowed()

bool LootStore::IsRatesAllowed ( ) const
inline

Definition at line 92 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ LoadAndCollectLootIds()

uint32 LootStore::LoadAndCollectLootIds ( LootIdSet ids_set)

Definition at line 239 of file LootMgr.cpp.

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

◆ LoadLootTable()

uint32 LootStore::LoadLootTable ( )
protected

Definition at line 130 of file LootMgr.cpp.

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

◆ ReportNonExistingId() [1/2]

void LootStore::ReportNonExistingId ( uint32  lootId) const

Definition at line 262 of file LootMgr.cpp.

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

◆ ReportNonExistingId() [2/2]

void LootStore::ReportNonExistingId ( uint32  lootId,
char const *  ownerType,
uint32  ownerId 
) const

Definition at line 267 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ ReportUnusedIds()

void LootStore::ReportUnusedIds ( LootIdSet const &  ids_set) const

Definition at line 255 of file LootMgr.cpp.

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

◆ Verify()

void LootStore::Verify ( ) const

Definition at line 122 of file LootMgr.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_entryName

char const* LootStore::m_entryName
private

Definition at line 99 of file LootMgr.h.

◆ m_LootTemplates

LootTemplateMap LootStore::m_LootTemplates
private

Definition at line 97 of file LootMgr.h.

◆ m_name

char const* LootStore::m_name
private

Definition at line 98 of file LootMgr.h.

◆ m_ratesAllowed

bool LootStore::m_ratesAllowed
private

Definition at line 100 of file LootMgr.h.


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