|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <LootMgr.h>
Classes | |
| class | LootGroup |
Public Member Functions | |
| bool | addConditionItem (Condition *cond) |
| void | AddEntry (LootStoreItem *item) |
| void | CheckLootRefs (LootTemplateMap const &store, LootIdSet *ref_set) const |
| void | CopyConditions (const ConditionList &conditions) |
| void | CopyConditions (LootItem *li) const |
| bool | HasQuestDrop (LootTemplateMap const &store, uint8 groupId=0) const |
| bool | HasQuestDropForPlayer (LootTemplateMap const &store, Player const *player, uint8 groupId=0) const |
| bool | isReference (uint32 id) |
| LootTemplate () | |
| void | Process (Loot &loot, bool rate, uint16 lootMode, uint8 groupId=0) const |
| void | Verify (LootStore const &store, uint32 Id) const |
| ~LootTemplate () | |
Private Types | |
| typedef std::vector< LootGroup * > | LootGroups |
Private Member Functions | |
| LootTemplate (LootTemplate const &) | |
| LootTemplate & | operator= (LootTemplate const &) |
Private Attributes | |
| LootStoreItemList | Entries |
| LootGroups | Groups |
|
private |
|
inline |
Definition at line 217 of file LootMgr.h.
Referenced by LootTemplate(), operator=(), and Process().
| LootTemplate::~LootTemplate | ( | ) |
Definition at line 1338 of file LootMgr.cpp.
|
private |
References LootTemplate().
| bool LootTemplate::addConditionItem | ( | Condition * | cond | ) |
Definition at line 1539 of file LootMgr.cpp.
References Entries, LootTemplate::LootGroup::GetEqualChancedItemList(), LootTemplate::LootGroup::GetExplicitlyChancedItemList(), Groups, Condition::isLoaded(), SF_LOG_ERROR, and Condition::SourceEntry.
Referenced by ConditionMgr::addToLootTemplate().
| void LootTemplate::AddEntry | ( | LootStoreItem * | item | ) |
Definition at line 1348 of file LootMgr.cpp.
References Entries, LootStoreItem::group, Groups, and LootStoreItem::mincountOrRef.
| void LootTemplate::CheckLootRefs | ( | LootTemplateMap const & | store, |
| LootIdSet * | ref_set ) const |
Definition at line 1520 of file LootMgr.cpp.
References Entries, Groups, LootTemplates_Reference, and LootStoreItem::mincountOrRef.
| void LootTemplate::CopyConditions | ( | const ConditionList & | conditions | ) |
Definition at line 1363 of file LootMgr.cpp.
References Entries, and Groups.
Referenced by Item::ItemContainerLoadLootFromDB().
| void LootTemplate::CopyConditions | ( | LootItem * | li | ) | const |
Definition at line 1373 of file LootMgr.cpp.
References LootItem::conditions, LootStoreItem::conditions, Entries, LootItem::itemid, and LootStoreItem::itemid.
| bool LootTemplate::HasQuestDrop | ( | LootTemplateMap const & | store, |
| uint8 | groupId = 0 ) const |
Definition at line 1433 of file LootMgr.cpp.
References Entries, LootStoreItem::group, Groups, LootStoreItem::mincountOrRef, and LootStoreItem::needs_quest.
| bool LootTemplate::HasQuestDropForPlayer | ( | LootTemplateMap const & | store, |
| Player const * | player, | ||
| uint8 | groupId = 0 ) const |
Definition at line 1471 of file LootMgr.cpp.
References Entries, LootStoreItem::group, Groups, Player::HasQuestForItem(), LootStoreItem::itemid, and LootStoreItem::mincountOrRef.
| bool LootTemplate::isReference | ( | uint32 | id | ) |
Definition at line 1597 of file LootMgr.cpp.
References Entries.
Referenced by ConditionMgr::isSourceTypeValid().
|
private |
References LootTemplate().
Definition at line 1388 of file LootMgr.cpp.
References Loot::AddItem(), Entries, LootStoreItem::group, Groups, LootStoreItem::lootmode, LootTemplate(), LootTemplates_Reference, LootStoreItem::maxcount, LootStoreItem::mincountOrRef, Process(), RATE_DROP_ITEM_REFERENCED_AMOUNT, LootStoreItem::Roll(), and sWorld.
Referenced by Loot::FillLoot(), and Process().
|
private |
Definition at line 239 of file LootMgr.h.
Referenced by addConditionItem(), AddEntry(), CheckLootRefs(), CopyConditions(), CopyConditions(), HasQuestDrop(), HasQuestDropForPlayer(), isReference(), Process(), and ~LootTemplate().
|
private |
Definition at line 240 of file LootMgr.h.
Referenced by addConditionItem(), AddEntry(), CheckLootRefs(), CopyConditions(), HasQuestDrop(), HasQuestDropForPlayer(), Process(), Verify(), and ~LootTemplate().