TrinityCore
LootTemplate Class Reference

#include <LootMgr.h>

Classes

class  LootGroup
 

Public Member Functions

 LootTemplate ()
 
 ~LootTemplate ()
 
void AddEntry (LootStoreItem *item)
 
void Process (Loot &loot, bool rate, uint16 lootMode, uint8 groupId, Player const *personalLooter=nullptr) const
 
void ProcessPersonalLoot (std::unordered_map< Player *, std::unique_ptr< Loot > > &personalLoot, bool rate, uint16 lootMode) const
 
void CopyConditions (LootItem *li) const
 
bool HasDropForPlayer (Player const *player, uint8 groupId=0, bool strictUsabilityCheck=false) const
 
bool HasQuestDrop (LootTemplateMap const &store, uint8 groupId=0) const
 
bool HasQuestDropForPlayer (LootTemplateMap const &store, Player const *player, uint8 groupId=0) const
 
void Verify (LootStore const &store, uint32 Id) const
 
void CheckLootRefs (LootTemplateMap const &store, LootIdSet *ref_set) const
 
bool LinkConditions (ConditionId const &id, ConditionsReference reference)
 
bool isReference (uint32 id)
 

Private Types

typedef std::vector< LootGroup * > LootGroups
 

Private Member Functions

 LootTemplate (LootTemplate const &)=delete
 
LootTemplateoperator= (LootTemplate const &)=delete
 

Private Attributes

LootStoreItemList Entries
 
LootGroups Groups
 

Detailed Description

Definition at line 103 of file LootMgr.h.

Member Typedef Documentation

◆ LootGroups

typedef std::vector<LootGroup*> LootTemplate::LootGroups
private

Definition at line 106 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootTemplate() [1/2]

LootTemplate::LootTemplate ( )
inline

Definition at line 109 of file LootMgr.h.

◆ ~LootTemplate()

LootTemplate::~LootTemplate ( )

Definition at line 517 of file LootMgr.cpp.

◆ LootTemplate() [2/2]

LootTemplate::LootTemplate ( LootTemplate const &  )
privatedelete

Member Function Documentation

◆ AddEntry()

void LootTemplate::AddEntry ( LootStoreItem item)

Definition at line 527 of file LootMgr.cpp.

◆ CheckLootRefs()

void LootTemplate::CheckLootRefs ( LootTemplateMap const &  store,
LootIdSet ref_set 
) const

Definition at line 835 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ CopyConditions()

void LootTemplate::CopyConditions ( LootItem li) const

Definition at line 542 of file LootMgr.cpp.

◆ HasDropForPlayer()

bool LootTemplate::HasDropForPlayer ( Player const *  player,
uint8  groupId = 0,
bool  strictUsabilityCheck = false 
) const

Definition at line 708 of file LootMgr.cpp.

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

◆ HasQuestDrop()

bool LootTemplate::HasQuestDrop ( LootTemplateMap const &  store,
uint8  groupId = 0 
) const

Definition at line 748 of file LootMgr.cpp.

◆ HasQuestDropForPlayer()

bool LootTemplate::HasQuestDropForPlayer ( LootTemplateMap const &  store,
Player const *  player,
uint8  groupId = 0 
) const

Definition at line 786 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ isReference()

bool LootTemplate::isReference ( uint32  id)

Definition at line 905 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ LinkConditions()

bool LootTemplate::LinkConditions ( ConditionId const &  id,
ConditionsReference  reference 
)

Definition at line 854 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ operator=()

LootTemplate & LootTemplate::operator= ( LootTemplate const &  )
privatedelete

◆ Process()

void LootTemplate::Process ( Loot loot,
bool  rate,
uint16  lootMode,
uint8  groupId,
Player const *  personalLooter = nullptr 
) const

Definition at line 557 of file LootMgr.cpp.

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

◆ ProcessPersonalLoot()

void LootTemplate::ProcessPersonalLoot ( std::unordered_map< Player *, std::unique_ptr< Loot > > &  personalLoot,
bool  rate,
uint16  lootMode 
) const

Definition at line 609 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ Verify()

void LootTemplate::Verify ( LootStore const &  store,
uint32  Id 
) const
Todo:
References validity checks

Definition at line 825 of file LootMgr.cpp.

Member Data Documentation

◆ Entries

LootStoreItemList LootTemplate::Entries
private

Definition at line 133 of file LootMgr.h.

◆ Groups

LootGroups LootTemplate::Groups
private

Definition at line 134 of file LootMgr.h.


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