TrinityCore
Loading...
Searching...
No Matches
LootStore Class Reference

#include <LootMgr.h>

Public Member Functions

 LootStore (char const *name, char const *entryName, bool ratesAllowed)
 
 LootStore (LootStore const &)=delete
 
 LootStore (LootStore &&) noexcept
 
LootStoreoperator= (LootStore const &)=delete
 
LootStoreoperator= (LootStore &&) noexcept
 
 ~LootStore ()
 
void Verify () const
 
uint32 LoadAndCollectLootIds (LootIdSet &lootIdSet)
 
void CheckLootRefs (LootIdSet *ref_set=nullptr) const
 
void ReportUnusedIds (LootIdSet const &lootIdSet) 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 73 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStore() [1/3]

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

Definition at line 113 of file LootMgr.cpp.

◆ LootStore() [2/3]

LootStore::LootStore ( LootStore const &  )
delete

◆ LootStore() [3/3]

LootStore::LootStore ( LootStore &&  )
defaultnoexcept

◆ ~LootStore()

LootStore::~LootStore ( )
default

Member Function Documentation

◆ CheckLootRefs()

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

Definition at line 226 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ Clear()

void LootStore::Clear ( )
protected

Definition at line 123 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ GetEntryName()

char const * LootStore::GetEntryName ( ) const
inline

Definition at line 100 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ GetLootFor()

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

Definition at line 207 of file LootMgr.cpp.

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

◆ GetLootForConditionFill()

LootTemplate * LootStore::GetLootForConditionFill ( uint32  loot_id)

Definition at line 212 of file LootMgr.cpp.

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

◆ GetName()

char const * LootStore::GetName ( ) const
inline

Definition at line 99 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ HaveLootFor()

bool LootStore::HaveLootFor ( uint32  loot_id) const
inline

Definition at line 92 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ HaveQuestLootFor()

bool LootStore::HaveQuestLootFor ( uint32  loot_id) const

Definition at line 189 of file LootMgr.cpp.

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

◆ HaveQuestLootForPlayer()

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

Definition at line 198 of file LootMgr.cpp.

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

◆ IsRatesAllowed()

bool LootStore::IsRatesAllowed ( ) const
inline

Definition at line 101 of file LootMgr.h.

+ Here is the caller graph for this function:

◆ LoadAndCollectLootIds()

uint32 LootStore::LoadAndCollectLootIds ( LootIdSet lootIdSet)

Definition at line 217 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 138 of file LootMgr.cpp.

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

◆ operator=() [1/2]

LootStore & LootStore::operator= ( LootStore &&  )
defaultnoexcept

◆ operator=() [2/2]

LootStore & LootStore::operator= ( LootStore const &  )
delete

◆ ReportNonExistingId()

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

Definition at line 239 of file LootMgr.cpp.

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

◆ ReportUnusedIds()

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

Definition at line 232 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 130 of file LootMgr.cpp.

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

Member Data Documentation

◆ m_entryName

char const* LootStore::m_entryName
private

Definition at line 108 of file LootMgr.h.

◆ m_LootTemplates

LootTemplateMap LootStore::m_LootTemplates
private

Definition at line 106 of file LootMgr.h.

◆ m_name

char const* LootStore::m_name
private

Definition at line 107 of file LootMgr.h.

◆ m_ratesAllowed

bool LootStore::m_ratesAllowed
private

Definition at line 109 of file LootMgr.h.


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