![]() |
TrinityCore
|
Public Member Functions | |
| LootGroup () | |
| ~LootGroup () | |
| void | AddEntry (LootStoreItem *item) |
| bool | HasQuestDrop () const |
| bool | HasQuestDropForPlayer (Player const *player) const |
| void | Process (Loot &loot, uint16 lootMode) 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 () |
| void | CopyConditions (ConditionContainer conditions) |
Private Member Functions | |
| LootStoreItem const * | Roll (Loot &loot, uint16 lootMode) const |
| LootGroup (LootGroup const &)=delete | |
| LootGroup & | operator= (LootGroup const &)=delete |
Private Attributes | |
| LootStoreItemList | ExplicitlyChanced |
| LootStoreItemList | EqualChanced |
Definition at line 81 of file LootMgr.cpp.
|
inline |
Definition at line 84 of file LootMgr.cpp.
| LootTemplate::LootGroup::~LootGroup | ( | ) |
Definition at line 350 of file LootMgr.cpp.
References EqualChanced, and ExplicitlyChanced.
|
privatedelete |
| void LootTemplate::LootGroup::AddEntry | ( | LootStoreItem * | item | ) |
Definition at line 366 of file LootMgr.cpp.
References LootStoreItem::chance.
| void LootTemplate::LootGroup::CheckLootRefs | ( | LootTemplateMap const & | store, |
| LootIdSet * | ref_set | ||
| ) | const |
Definition at line 481 of file LootMgr.cpp.
References LootStore::GetLootFor(), LootStoreItem::itemid, LootTemplates_Reference, LootStoreItem::reference, and LootStore::ReportNonExistingId().
| void LootTemplate::LootGroup::CopyConditions | ( | ConditionContainer | conditions | ) |
Definition at line 432 of file LootMgr.cpp.
References LootStoreItem::conditions.
|
inline |
Definition at line 98 of file LootMgr.cpp.
References EqualChanced.
Referenced by LootTemplate::addConditionItem().
|
inline |
Definition at line 97 of file LootMgr.cpp.
References ExplicitlyChanced.
Referenced by LootTemplate::addConditionItem().
| bool LootTemplate::LootGroup::HasQuestDrop | ( | ) | const |
Definition at line 405 of file LootMgr.cpp.
| bool LootTemplate::LootGroup::HasQuestDropForPlayer | ( | Player const * | player | ) | const |
Definition at line 419 of file LootMgr.cpp.
References Player::HasQuestForItem().
Definition at line 442 of file LootMgr.cpp.
References Loot::AddItem().
| float LootTemplate::LootGroup::RawTotalChance | ( | ) | const |
Definition at line 449 of file LootMgr.cpp.
|
private |
Definition at line 375 of file LootMgr.cpp.
References LootStoreItem::chance, rand_chance(), and Trinity::Containers::SelectRandomContainerElement().
| float LootTemplate::LootGroup::TotalChance | ( | ) | const |
Definition at line 461 of file LootMgr.cpp.
| void LootTemplate::LootGroup::Verify | ( | LootStore const & | lootstore, |
| uint32 | id, | ||
| uint8 | group_id | ||
| ) | const |
Definition at line 471 of file LootMgr.cpp.
References LootStore::GetName(), and TC_LOG_ERROR.
|
private |
Definition at line 102 of file LootMgr.cpp.
Referenced by GetEqualChancedItemList(), and ~LootGroup().
|
private |
Definition at line 101 of file LootMgr.cpp.
Referenced by GetExplicitlyChancedItemList(), and ~LootGroup().