|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <LootMgr.h>
Public Member Functions | |
| void | AddAllowedLooter (Player const *player) |
| bool | AllowedForPlayer (Player const *player) const |
| const AllowedLooterSet & | GetAllowedLooters () const |
| LootItem () | |
| LootItem (LootStoreItem const &li) | |
| void | WriteBasicDataPart (LootSlotType slotType, uint8 slot, ByteBuffer *buff) |
| void | WriteBitDataPart (PermissionTypes permission, LootSlotType hasSlotType, ByteBuffer *buff) |
Public Attributes | |
| AllowedLooterSet | allowedGUIDs |
| bool | canSave |
| ConditionList | conditions |
| uint8 | count: 8 |
| bool | follow_loot_rules: 1 |
| bool | freeforall: 1 |
| bool | is_blocked: 1 |
| bool | is_counted: 1 |
| bool | is_looted: 1 |
| bool | is_underthreshold: 1 |
| uint32 | itemid |
| bool | needs_quest: 1 |
| int32 | randomPropertyId |
| uint32 | randomSuffix |
|
explicit |
Definition at line 341 of file LootMgr.cpp.
References canSave, conditions, ItemTemplate::Flags, ItemTemplate::FlagsCu, follow_loot_rules, freeforall, GenerateEnchSuffixFactor(), Item::GenerateItemRandomPropertyId(), is_blocked, is_counted, is_looted, is_underthreshold, ITEM_FLAGS_CU_FOLLOW_LOOT_RULES, ITEM_PROTO_FLAG_PARTY_LOOT, itemid, needs_quest, randomPropertyId, randomSuffix, and sObjectMgr.
| void LootItem::AddAllowedLooter | ( | Player const * | player | ) |
Definition at line 380 of file LootMgr.cpp.
References allowedGUIDs, and Object::GetGUIDLow().
Referenced by Loot::FillNonQuestNonFFAConditionalLoot().
| bool LootItem::AllowedForPlayer | ( | Player const * | player | ) | const |
Definition at line 352 of file LootMgr.cpp.
References ALLIANCE, conditions, ItemTemplate::Flags, ItemTemplate::Flags2, ItemTemplate::FlagsCu, Player::GetQuestStatus(), Player::GetTeam(), Player::HasQuestForItem(), Player::HasSkill(), Player::HasSpell(), HORDE, ITEM_FLAGS_CU_IGNORE_QUEST_STATUS, ITEM_FLAGS_EXTRA_ALLIANCE_ONLY, ITEM_FLAGS_EXTRA_HORDE_ONLY, ITEM_PROTO_FLAG_SMART_LOOT, itemid, needs_quest, QUEST_STATUS_NONE, ItemTemplate::RequiredSkill, sConditionMgr, sObjectMgr, _Spell::SpellId, ItemTemplate::Spells, and ItemTemplate::StartQuest.
Referenced by Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), and WorldSession::HandleLootMasterGiveOpcode().
|
inline |
Definition at line 145 of file LootMgr.h.
References allowedGUIDs.
Referenced by Group::CountTheRoll(), WorldSession::HandleLootMasterGiveOpcode(), and Player::StoreLootItem().
| void LootItem::WriteBasicDataPart | ( | LootSlotType | slotType, |
| uint8 | slot, | ||
| ByteBuffer * | buff ) |
Definition at line 849 of file LootMgr.cpp.
References count, itemid, randomPropertyId, randomSuffix, and sObjectMgr.
Referenced by LootView::WriteData().
| void LootItem::WriteBitDataPart | ( | PermissionTypes | permission, |
| LootSlotType | hasSlotType, | ||
| ByteBuffer * | buff ) |
Definition at line 839 of file LootMgr.cpp.
References ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().
Referenced by LootView::WriteData().
| AllowedLooterSet LootItem::allowedGUIDs |
Definition at line 124 of file LootMgr.h.
Referenced by AddAllowedLooter(), GetAllowedLooters(), and Item::ItemContainerLoadLootFromDB().
| bool LootItem::canSave |
Definition at line 133 of file LootMgr.h.
Referenced by Item::ItemContainerLoadLootFromDB(), LootItem(), and LootItem().
| ConditionList LootItem::conditions |
Definition at line 123 of file LootMgr.h.
Referenced by AllowedForPlayer(), LootTemplate::CopyConditions(), Loot::FillNonQuestNonFFAConditionalLoot(), LootItem(), and Loot::LootItemInSlot().
| uint8 LootItem::count |
Definition at line 125 of file LootMgr.h.
Referenced by Loot::AddItem(), Player::AutoStoreLoot(), Group::CountTheRoll(), WorldSession::HandleLootMasterGiveOpcode(), Item::ItemContainerLoadLootFromDB(), Player::StoreLootItem(), and WriteBasicDataPart().
| bool LootItem::follow_loot_rules |
Definition at line 132 of file LootMgr.h.
Referenced by Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillQuestLoot(), WorldSession::HandleLootMasterGiveOpcode(), Item::ItemContainerLoadLootFromDB(), LootItem(), and LootView::WriteData().
| bool LootItem::freeforall |
Definition at line 128 of file LootMgr.h.
Referenced by Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), Item::ItemContainerLoadLootFromDB(), LootItem(), Loot::LootItemInSlot(), and Player::StoreLootItem().
| bool LootItem::is_blocked |
Definition at line 127 of file LootMgr.h.
Referenced by Group::CountTheRoll(), Loot::FillQuestLoot(), Item::ItemContainerLoadLootFromDB(), LootItem(), Player::StoreLootItem(), and LootView::WriteData().
| bool LootItem::is_counted |
Definition at line 130 of file LootMgr.h.
Referenced by Loot::FillNonQuestNonFFAConditionalLoot(), Item::ItemContainerLoadLootFromDB(), and LootItem().
| bool LootItem::is_looted |
Definition at line 126 of file LootMgr.h.
Referenced by Group::CountTheRoll(), Loot::FillFFALoot(), Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillNotNormalLootFor(), Loot::FillQuestLoot(), WorldSession::HandleLootMasterGiveOpcode(), Loot::hasItemFor(), LootItem(), Loot::LootItemInSlot(), Player::StoreLootItem(), and LootView::WriteData().
| bool LootItem::is_underthreshold |
Definition at line 129 of file LootMgr.h.
Referenced by Item::ItemContainerLoadLootFromDB(), and LootItem().
| uint32 LootItem::itemid |
Definition at line 120 of file LootMgr.h.
Referenced by AllowedForPlayer(), Player::AutoStoreLoot(), LootTemplate::CopyConditions(), Loot::FillNotNormalLootFor(), WorldSession::HandleLootMasterGiveOpcode(), Item::ItemContainerLoadLootFromDB(), LootItem(), Player::StoreLootItem(), and WriteBasicDataPart().
| bool LootItem::needs_quest |
Definition at line 131 of file LootMgr.h.
Referenced by AllowedForPlayer(), Item::ItemContainerLoadLootFromDB(), and LootItem().
| int32 LootItem::randomPropertyId |
Definition at line 122 of file LootMgr.h.
Referenced by Player::AutoStoreLoot(), Group::CountTheRoll(), WorldSession::HandleLootMasterGiveOpcode(), Item::ItemContainerLoadLootFromDB(), LootItem(), Player::StoreLootItem(), and WriteBasicDataPart().
| uint32 LootItem::randomSuffix |
Definition at line 121 of file LootMgr.h.
Referenced by Item::ItemContainerLoadLootFromDB(), LootItem(), and WriteBasicDataPart().