TrinityCore
Loading...
Searching...
No Matches
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, 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
 

Detailed Description

Definition at line 63 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStore()

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

Definition at line 66 of file LootMgr.h.

◆ ~LootStore()

virtual LootStore::~LootStore ( )
inlinevirtual

Definition at line 69 of file LootMgr.h.

Member Function Documentation

◆ CheckLootRefs()

◆ Clear()

void LootStore::Clear ( )
protected

Definition at line 112 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by LoadLootTable().

◆ GetEntryName()

char const * LootStore::GetEntryName ( ) const
inline

Definition at line 87 of file LootMgr.h.

Referenced by ReportUnusedIds().

◆ GetLootFor()

◆ GetLootForConditionFill()

LootTemplate * LootStore::GetLootForConditionFill ( uint32  loot_id)

Definition at line 237 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by ConditionMgr::isSourceTypeValid(), and ConditionMgr::LoadConditions().

◆ GetName()

char const * LootStore::GetName ( ) const
inline

◆ HaveLootFor()

bool LootStore::HaveLootFor ( uint32  loot_id) const
inline

◆ HaveQuestLootFor()

bool LootStore::HaveQuestLootFor ( uint32  loot_id) const

Definition at line 198 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by ObjectMgr::LoadGameObjectForQuests().

◆ HaveQuestLootForPlayer()

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

Definition at line 208 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by GameObject::ActivateToQuest().

◆ IsRatesAllowed()

bool LootStore::IsRatesAllowed ( ) const
inline

Definition at line 88 of file LootMgr.h.

Referenced by Loot::FillLoot().

◆ LoadAndCollectLootIds()

◆ LoadLootTable()

◆ ReportNonExistingId()

◆ ReportUnusedIds()

◆ ResetConditions()

void LootStore::ResetConditions ( )

Definition at line 218 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by ConditionMgr::LoadConditions().

◆ Verify()

void LootStore::Verify ( ) const

Definition at line 121 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by LoadLootTable().

Member Data Documentation

◆ m_entryName

char const* LootStore::m_entryName
private

Definition at line 95 of file LootMgr.h.

◆ m_LootTemplates

◆ m_name

char const* LootStore::m_name
private

Definition at line 94 of file LootMgr.h.

◆ m_ratesAllowed

bool LootStore::m_ratesAllowed
private

Definition at line 96 of file LootMgr.h.


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