TrinityCore
Loading...
Searching...
No Matches
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=0) const
 
void CopyConditions (ConditionContainer const &conditions)
 
void CopyConditions (LootItem *li) const
 
bool HasQuestDrop (uint8 groupId=0) const
 
bool HasQuestDropForPlayer (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 addConditionItem (Condition *cond)
 
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 99 of file LootMgr.h.

Member Typedef Documentation

◆ LootGroups

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

Definition at line 102 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootTemplate() [1/2]

LootTemplate::LootTemplate ( )
inline

Definition at line 105 of file LootMgr.h.

◆ ~LootTemplate()

LootTemplate::~LootTemplate ( )

Definition at line 512 of file LootMgr.cpp.

◆ LootTemplate() [2/2]

LootTemplate::LootTemplate ( LootTemplate const &  )
privatedelete

Member Function Documentation

◆ addConditionItem()

bool LootTemplate::addConditionItem ( Condition cond)

Definition at line 713 of file LootMgr.cpp.

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

◆ AddEntry()

void LootTemplate::AddEntry ( LootStoreItem item)

Definition at line 522 of file LootMgr.cpp.

◆ CheckLootRefs()

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

Definition at line 694 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ CopyConditions() [1/2]

void LootTemplate::CopyConditions ( ConditionContainer const &  conditions)

Definition at line 537 of file LootMgr.cpp.

◆ CopyConditions() [2/2]

void LootTemplate::CopyConditions ( LootItem li) const

Definition at line 547 of file LootMgr.cpp.

◆ HasQuestDrop()

bool LootTemplate::HasQuestDrop ( uint8  groupId = 0) const

Definition at line 607 of file LootMgr.cpp.

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

◆ HasQuestDropForPlayer()

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

Definition at line 645 of file LootMgr.cpp.

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

◆ isReference()

bool LootTemplate::isReference ( uint32  id)

Definition at line 771 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 = 0 
) const

Definition at line 562 of file LootMgr.cpp.

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

◆ Verify()

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

Definition at line 684 of file LootMgr.cpp.

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

Member Data Documentation

◆ Entries

LootStoreItemList LootTemplate::Entries
private

Definition at line 127 of file LootMgr.h.

◆ Groups

LootGroups LootTemplate::Groups
private

Definition at line 128 of file LootMgr.h.


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