![]() |
TrinityCore
|
Public Member Functions | |
| LootGroup ()=default | |
| LootGroup (LootGroup const &)=delete | |
| LootGroup (LootGroup &&)=delete | |
| LootGroup & | operator= (LootGroup const &)=delete |
| LootGroup & | operator= (LootGroup &&)=delete |
| ~LootGroup ()=default | |
| 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 |
| LootStoreItemList * | GetExplicitlyChancedItemList () |
| LootStoreItemList * | GetEqualChancedItemList () |
Private Member Functions | |
| LootStoreItem const * | Roll (uint16 lootMode, Player const *personalLooter=nullptr) const |
Private Attributes | |
| LootStoreItemList | ExplicitlyChanced |
| LootStoreItemList | EqualChanced |
Definition at line 81 of file LootMgr.cpp.
|
default |
|
delete |
|
delete |
|
default |
| void LootTemplate::LootGroup::AddEntry | ( | LootStoreItem * | item | ) |
Definition at line 423 of file LootMgr.cpp.
References LootStoreItem::chance, EqualChanced, and ExplicitlyChanced.
| void LootTemplate::LootGroup::CheckLootRefs | ( | LootTemplateMap const & | store, |
| LootIdSet * | ref_set | ||
| ) | const |
Definition at line 558 of file LootMgr.cpp.
References LootStore::GetLootFor(), LootTemplates_Reference, LootStoreItem::Reference, and LootStore::ReportNonExistingId().
|
inline |
Definition at line 104 of file LootMgr.cpp.
References EqualChanced.
|
inline |
Definition at line 103 of file LootMgr.cpp.
References ExplicitlyChanced.
| bool LootTemplate::LootGroup::HasDropForPlayer | ( | Player const * | player, |
| bool | strictUsabilityCheck | ||
| ) | const |
Definition at line 467 of file LootMgr.cpp.
References LootItem::AllowedForPlayer().
| bool LootTemplate::LootGroup::HasQuestDrop | ( | ) | const |
Definition at line 481 of file LootMgr.cpp.
References LootStoreItem::needs_quest.
| bool LootTemplate::LootGroup::HasQuestDropForPlayer | ( | Player const * | player | ) | const |
Definition at line 493 of file LootMgr.cpp.
References LootStoreItem::Currency, Player::HasQuestForCurrency(), Player::HasQuestForItem(), and LootStoreItem::Item.
| void LootTemplate::LootGroup::Process | ( | Loot & | loot, |
| uint16 | lootMode, | ||
| Player const * | personalLooter = nullptr |
||
| ) | const |
Definition at line 519 of file LootMgr.cpp.
References Loot::AddItem().
| float LootTemplate::LootGroup::RawTotalChance | ( | ) | const |
Definition at line 526 of file LootMgr.cpp.
|
private |
Definition at line 432 of file LootMgr.cpp.
References Trinity::Containers::EraseIf(), rand_chance(), and Trinity::Containers::SelectRandomContainerElement().
| float LootTemplate::LootGroup::TotalChance | ( | ) | const |
Definition at line 538 of file LootMgr.cpp.
| void LootTemplate::LootGroup::Verify | ( | LootStore const & | lootstore, |
| uint32 | id, | ||
| uint8 | group_id | ||
| ) | const |
Definition at line 548 of file LootMgr.cpp.
References LootStore::GetName(), and TC_LOG_ERROR.
|
private |
Definition at line 107 of file LootMgr.cpp.
Referenced by AddEntry(), and GetEqualChancedItemList().
|
private |
Definition at line 106 of file LootMgr.cpp.
Referenced by AddEntry(), and GetExplicitlyChancedItemList().