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

#include <LootMgr.h>

Classes

class  LootGroup
 

Public Member Functions

 LootTemplate ()
 
 LootTemplate (LootTemplate const &)=delete
 
 LootTemplate (LootTemplate &&) noexcept
 
LootTemplateoperator= (LootTemplate const &)=delete
 
LootTemplateoperator= (LootTemplate &&) noexcept
 
 ~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)
 

Private Types

typedef std::vector< std::unique_ptr< LootGroup > > LootGroups
 

Private Attributes

LootStoreItemList Entries
 
LootGroups Groups
 

Detailed Description

Definition at line 112 of file LootMgr.h.

Member Typedef Documentation

◆ LootGroups

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

Definition at line 115 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootTemplate() [1/3]

LootTemplate::LootTemplate ( )
default

◆ LootTemplate() [2/3]

LootTemplate::LootTemplate ( LootTemplate const &  )
delete

◆ LootTemplate() [3/3]

LootTemplate::LootTemplate ( LootTemplate &&  )
defaultnoexcept

◆ ~LootTemplate()

LootTemplate::~LootTemplate ( )
default

Member Function Documentation

◆ AddEntry()

void LootTemplate::AddEntry ( LootStoreItem item)

Definition at line 593 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ CheckLootRefs()

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

Definition at line 968 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ CopyConditions()

void LootTemplate::CopyConditions ( LootItem li) const

Definition at line 607 of file LootMgr.cpp.

◆ HasDropForPlayer()

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

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

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

◆ HasQuestDropForPlayer()

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

Definition at line 909 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ LinkConditions()

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

Definition at line 986 of file LootMgr.cpp.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

LootTemplate & LootTemplate::operator= ( LootTemplate &&  )
defaultnoexcept

◆ operator=() [2/2]

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

◆ Process()

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

Definition at line 641 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 698 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 958 of file LootMgr.cpp.

Member Data Documentation

◆ Entries

LootStoreItemList LootTemplate::Entries
private

Definition at line 147 of file LootMgr.h.

◆ Groups

LootGroups LootTemplate::Groups
private

Definition at line 148 of file LootMgr.h.


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