|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| void | AddEntry (LootStoreItem *item) |
| void | CheckLootRefs (LootTemplateMap const &store, LootIdSet *ref_set) const |
| void | CollectLootIds (LootIdSet &set) const |
| void | CopyConditions (ConditionList conditions) |
| LootStoreItemList * | GetEqualChancedItemList () |
| LootStoreItemList * | GetExplicitlyChancedItemList () |
| bool | HasQuestDrop () const |
| bool | HasQuestDropForPlayer (Player const *player) const |
| LootGroup () | |
| void | Process (Loot &loot, uint16 lootMode) const |
| float | RawTotalChance () const |
| float | TotalChance () const |
| void | Verify (LootStore const &lootstore, uint32 id, uint8 group_id) const |
| ~LootGroup () | |
Private Member Functions | |
| LootGroup (LootGroup const &) | |
| LootGroup & | operator= (LootGroup const &) |
| LootStoreItem const * | Roll (Loot &loot, uint16 lootMode) const |
Private Attributes | |
| LootStoreItemList | EqualChanced |
| LootStoreItemList | ExplicitlyChanced |
Definition at line 67 of file LootMgr.cpp.
|
inline |
Definition at line 70 of file LootMgr.cpp.
Referenced by LootGroup(), and operator=().
| LootTemplate::LootGroup::~LootGroup | ( | ) |
Definition at line 1176 of file LootMgr.cpp.
References EqualChanced, and ExplicitlyChanced.
|
private |
References LootGroup().
| void LootTemplate::LootGroup::AddEntry | ( | LootStoreItem * | item | ) |
Definition at line 1192 of file LootMgr.cpp.
References LootStoreItem::chance, EqualChanced, and ExplicitlyChanced.
| void LootTemplate::LootGroup::CheckLootRefs | ( | LootTemplateMap const & | store, |
| LootIdSet * | ref_set ) const |
Definition at line 1307 of file LootMgr.cpp.
References EqualChanced, ExplicitlyChanced, LootTemplates_Reference, and LootStoreItem::mincountOrRef.
| void LootTemplate::LootGroup::CollectLootIds | ( | LootIdSet & | set | ) | const |
| void LootTemplate::LootGroup::CopyConditions | ( | ConditionList | conditions | ) |
Definition at line 1258 of file LootMgr.cpp.
References EqualChanced, and ExplicitlyChanced.
|
inline |
Definition at line 85 of file LootMgr.cpp.
References EqualChanced.
Referenced by LootTemplate::addConditionItem().
|
inline |
Definition at line 84 of file LootMgr.cpp.
References ExplicitlyChanced.
Referenced by LootTemplate::addConditionItem().
| bool LootTemplate::LootGroup::HasQuestDrop | ( | ) | const |
Definition at line 1231 of file LootMgr.cpp.
References EqualChanced, and ExplicitlyChanced.
| bool LootTemplate::LootGroup::HasQuestDropForPlayer | ( | Player const * | player | ) | const |
Definition at line 1245 of file LootMgr.cpp.
References EqualChanced, ExplicitlyChanced, and Player::HasQuestForItem().
References LootGroup().
Definition at line 1268 of file LootMgr.cpp.
References Loot::AddItem(), and Roll().
| float LootTemplate::LootGroup::RawTotalChance | ( | ) | const |
Definition at line 1275 of file LootMgr.cpp.
References ExplicitlyChanced.
Referenced by TotalChance(), and Verify().
|
private |
Definition at line 1201 of file LootMgr.cpp.
References LootStoreItem::chance, EqualChanced, ExplicitlyChanced, rand_chance(), and Skyfire::Containers::SelectRandomContainerElement().
Referenced by Process().
| float LootTemplate::LootGroup::TotalChance | ( | ) | const |
Definition at line 1287 of file LootMgr.cpp.
References EqualChanced, and RawTotalChance().
| void LootTemplate::LootGroup::Verify | ( | LootStore const & | lootstore, |
| uint32 | id, | ||
| uint8 | group_id ) const |
Definition at line 1297 of file LootMgr.cpp.
References EqualChanced, LootStore::GetName(), RawTotalChance(), and SF_LOG_ERROR.
|
private |
Definition at line 89 of file LootMgr.cpp.
Referenced by AddEntry(), CheckLootRefs(), CopyConditions(), GetEqualChancedItemList(), HasQuestDrop(), HasQuestDropForPlayer(), Roll(), TotalChance(), Verify(), and ~LootGroup().
|
private |
Definition at line 88 of file LootMgr.cpp.
Referenced by AddEntry(), CheckLootRefs(), CopyConditions(), GetExplicitlyChancedItemList(), HasQuestDrop(), HasQuestDropForPlayer(), RawTotalChance(), Roll(), and ~LootGroup().