Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LootStore Class Reference

#include <LootMgr.h>

Public Member Functions

void CheckLootRefs (LootIdSet *ref_set=NULL) const
char const * GetEntryName () const
LootTemplate const * GetLootFor (uint32 loot_id) const
LootTemplateGetLootForConditionFill (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

Detailed Description

Definition at line 175 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStore()

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

Definition at line 178 of file LootMgr.h.

References m_entryName, m_name, and m_ratesAllowed.

◆ ~LootStore()

virtual LootStore::~LootStore ( )
inlinevirtual

Definition at line 181 of file LootMgr.h.

References Clear().

Member Function Documentation

◆ CheckLootRefs()

void LootStore::CheckLootRefs ( LootIdSet * ref_set = NULL) const

Definition at line 247 of file LootMgr.cpp.

References m_LootTemplates.

◆ Clear()

void LootStore::Clear ( )
protected

Definition at line 99 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by LoadLootTable(), and ~LootStore().

◆ GetEntryName()

char const * LootStore::GetEntryName ( ) const
inline

Definition at line 199 of file LootMgr.h.

References m_entryName.

Referenced by ReportNotExistedId(), and ReportUnusedIds().

◆ GetLootFor()

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

Definition at line 217 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by Loot::FillLoot().

◆ GetLootForConditionFill()

LootTemplate * LootStore::GetLootForConditionFill ( uint32 loot_id)

Definition at line 227 of file LootMgr.cpp.

References m_LootTemplates.

◆ GetName()

char const * LootStore::GetName ( ) const
inline

◆ HaveLootFor()

bool LootStore::HaveLootFor ( uint32 loot_id) const
inline

Definition at line 190 of file LootMgr.h.

References m_LootTemplates.

◆ HaveQuestLootFor()

bool LootStore::HaveQuestLootFor ( uint32 loot_id) const

Definition at line 188 of file LootMgr.cpp.

References m_LootTemplates.

◆ HaveQuestLootForPlayer()

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

Definition at line 198 of file LootMgr.cpp.

References m_LootTemplates.

◆ IsRatesAllowed()

bool LootStore::IsRatesAllowed ( ) const
inline

Definition at line 200 of file LootMgr.h.

References m_ratesAllowed.

Referenced by Loot::FillLoot().

◆ LoadAndCollectLootIds()

uint32 LootStore::LoadAndCollectLootIds ( LootIdSet & ids_set)

Definition at line 237 of file LootMgr.cpp.

References LoadLootTable(), and m_LootTemplates.

◆ LoadLootTable()

◆ ReportNotExistedId()

void LootStore::ReportNotExistedId ( uint32 id) const

Definition at line 260 of file LootMgr.cpp.

References GetEntryName(), GetName(), and SF_LOG_ERROR.

◆ ReportUnusedIds()

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

Definition at line 253 of file LootMgr.cpp.

References GetEntryName(), GetName(), and SF_LOG_ERROR.

◆ ResetConditions()

void LootStore::ResetConditions ( )

Definition at line 208 of file LootMgr.cpp.

References m_LootTemplates.

◆ Verify()

void LootStore::Verify ( ) const

Definition at line 108 of file LootMgr.cpp.

References m_LootTemplates.

Referenced by LoadLootTable().

Member Data Documentation

◆ m_entryName

char const* LootStore::m_entryName
private

Definition at line 207 of file LootMgr.h.

Referenced by GetEntryName(), and LootStore().

◆ m_LootTemplates

◆ m_name

char const* LootStore::m_name
private

Definition at line 206 of file LootMgr.h.

Referenced by GetName(), and LootStore().

◆ m_ratesAllowed

bool LootStore::m_ratesAllowed
private

Definition at line 208 of file LootMgr.h.

Referenced by IsRatesAllowed(), and LootStore().


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