TrinityCore
LootTemplate::LootGroup Class Reference

Public Member Functions

 LootGroup ()=default
 
 LootGroup (LootGroup const &)=delete
 
 LootGroup (LootGroup &&)=delete
 
LootGroupoperator= (LootGroup const &)=delete
 
LootGroupoperator= (LootGroup &&)=delete
 
 ~LootGroup ()
 
void AddEntry (LootStoreItem *item)
 
bool HasDropForPlayer (Player const *player, bool strictUsabilityCheck) const
 
bool HasQuestDrop () const
 
bool HasQuestDropForPlayer (Player const *player) const
 
void Process (Loot &loot, uint16 lootMode, Player const *personalLooter=nullptr) const
 
float RawTotalChance () const
 
float TotalChance () const
 
void Verify (LootStore const &lootstore, uint32 id, uint8 group_id) const
 
void CheckLootRefs (LootTemplateMap const &store, LootIdSet *ref_set) const
 
LootStoreItemListGetExplicitlyChancedItemList ()
 
LootStoreItemListGetEqualChancedItemList ()
 

Private Member Functions

LootStoreItem const * Roll (uint16 lootMode, Player const *personalLooter=nullptr) const
 

Private Attributes

LootStoreItemList ExplicitlyChanced
 
LootStoreItemList EqualChanced
 

Detailed Description

Definition at line 80 of file LootMgr.cpp.

Constructor & Destructor Documentation

◆ LootGroup() [1/3]

LootTemplate::LootGroup::LootGroup ( )
default

◆ LootGroup() [2/3]

LootTemplate::LootGroup::LootGroup ( LootGroup const &  )
delete

◆ LootGroup() [3/3]

LootTemplate::LootGroup::LootGroup ( LootGroup &&  )
delete

◆ ~LootGroup()

LootTemplate::LootGroup::~LootGroup ( )

Definition at line 347 of file LootMgr.cpp.

Member Function Documentation

◆ AddEntry()

void LootTemplate::LootGroup::AddEntry ( LootStoreItem item)

Definition at line 363 of file LootMgr.cpp.

◆ CheckLootRefs()

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

Definition at line 486 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ GetEqualChancedItemList()

LootStoreItemList * LootTemplate::LootGroup::GetEqualChancedItemList ( )
inline

Definition at line 103 of file LootMgr.cpp.

◆ GetExplicitlyChancedItemList()

LootStoreItemList * LootTemplate::LootGroup::GetExplicitlyChancedItemList ( )
inline

Definition at line 102 of file LootMgr.cpp.

◆ HasDropForPlayer()

bool LootTemplate::LootGroup::HasDropForPlayer ( Player const *  player,
bool  strictUsabilityCheck 
) const

Definition at line 401 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ HasQuestDrop()

bool LootTemplate::LootGroup::HasQuestDrop ( ) const

Definition at line 419 of file LootMgr.cpp.

◆ HasQuestDropForPlayer()

bool LootTemplate::LootGroup::HasQuestDropForPlayer ( Player const *  player) const

Definition at line 433 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Process()

void LootTemplate::LootGroup::Process ( Loot loot,
uint16  lootMode,
Player const *  personalLooter = nullptr 
) const

Definition at line 447 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ RawTotalChance()

float LootTemplate::LootGroup::RawTotalChance ( ) const

Definition at line 454 of file LootMgr.cpp.

◆ Roll()

LootStoreItem const * LootTemplate::LootGroup::Roll ( uint16  lootMode,
Player const *  personalLooter = nullptr 
) const
private

Definition at line 372 of file LootMgr.cpp.

+ Here is the call graph for this function:

◆ TotalChance()

float LootTemplate::LootGroup::TotalChance ( ) const

Definition at line 466 of file LootMgr.cpp.

◆ Verify()

void LootTemplate::LootGroup::Verify ( LootStore const &  lootstore,
uint32  id,
uint8  group_id 
) const
Todo:
replace with 100% when DBs will be ready

Definition at line 476 of file LootMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ EqualChanced

LootStoreItemList LootTemplate::LootGroup::EqualChanced
private

Definition at line 106 of file LootMgr.cpp.

◆ ExplicitlyChanced

LootStoreItemList LootTemplate::LootGroup::ExplicitlyChanced
private

Definition at line 105 of file LootMgr.cpp.


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