![]() |
TrinityCore
|
#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 | |
| LootTemplate & | operator= (LootTemplate const &)=delete |
Private Attributes | |
| LootStoreItemList | Entries |
| LootGroups | Groups |
|
private |
| LootTemplate::~LootTemplate | ( | ) |
Definition at line 512 of file LootMgr.cpp.
References Groups.
|
privatedelete |
| bool LootTemplate::addConditionItem | ( | Condition * | cond | ) |
Definition at line 713 of file LootMgr.cpp.
References LootTemplate::LootGroup::GetEqualChancedItemList(), LootTemplate::LootGroup::GetExplicitlyChancedItemList(), Groups, Condition::isLoaded(), Condition::SourceEntry, and TC_LOG_ERROR.
Referenced by ConditionMgr::addToLootTemplate().
| void LootTemplate::AddEntry | ( | LootStoreItem * | item | ) |
Definition at line 522 of file LootMgr.cpp.
References LootStoreItem::groupid, Groups, and LootStoreItem::reference.
| void LootTemplate::CheckLootRefs | ( | LootTemplateMap const & | store, |
| LootIdSet * | ref_set | ||
| ) | const |
Definition at line 694 of file LootMgr.cpp.
References LootStore::GetLootFor(), Groups, LootStoreItem::itemid, LootTemplates_Reference, LootStoreItem::reference, and LootStore::ReportNonExistingId().
| void LootTemplate::CopyConditions | ( | ConditionContainer const & | conditions | ) |
Definition at line 537 of file LootMgr.cpp.
References Groups.
| void LootTemplate::CopyConditions | ( | LootItem * | li | ) | const |
Definition at line 547 of file LootMgr.cpp.
References LootItem::conditions, LootStoreItem::conditions, LootItem::itemid, and LootStoreItem::itemid.
| bool LootTemplate::HasQuestDrop | ( | uint8 | groupId = 0 | ) | const |
Definition at line 607 of file LootMgr.cpp.
References LootStore::GetLootFor(), LootStoreItem::groupid, Groups, HasQuestDrop(), LootTemplates_Reference, LootStoreItem::needs_quest, and LootStoreItem::reference.
Referenced by HasQuestDrop().
Definition at line 645 of file LootMgr.cpp.
References LootStore::GetLootFor(), LootStoreItem::groupid, Groups, HasQuestDropForPlayer(), Player::HasQuestForItem(), LootStoreItem::itemid, LootTemplates_Reference, and LootStoreItem::reference.
Referenced by HasQuestDropForPlayer().
| bool LootTemplate::isReference | ( | uint32 | id | ) |
Definition at line 771 of file LootMgr.cpp.
Referenced by ConditionMgr::isSourceTypeValid().
|
privatedelete |
Definition at line 562 of file LootMgr.cpp.
References Loot::AddItem(), LootStore::GetLootFor(), LootStoreItem::groupid, Groups, LootStoreItem::lootmode, LootTemplates_Reference, LootStoreItem::maxcount, Process(), RATE_DROP_ITEM_REFERENCED_AMOUNT, LootStoreItem::reference, LootStoreItem::Roll(), and sWorld.
Referenced by Loot::FillLoot(), and Process().
|
private |
|
private |
Definition at line 128 of file LootMgr.h.
Referenced by addConditionItem(), AddEntry(), CheckLootRefs(), CopyConditions(), HasQuestDrop(), HasQuestDropForPlayer(), Process(), Verify(), and ~LootTemplate().