TrinityCore
LootItem Struct Reference

#include <Loot.h>

Public Member Functions

 LootItem (LootStoreItem const &li)
 
 LootItem ()
 
 LootItem (LootItem const &)
 
 LootItem (LootItem &&) noexcept
 
LootItemoperator= (LootItem const &)
 
LootItemoperator= (LootItem &&) noexcept
 
 ~LootItem ()
 
bool AllowedForPlayer (Player const *player, Loot const *loot) const
 
void AddAllowedLooter (Player const *player)
 
GuidSet const & GetAllowedLooters () const
 
bool HasAllowedLooter (ObjectGuid const &looter) const
 
Optional< LootSlotTypeGetUiTypeForPlayer (Player const *player, Loot const &loot) const
 

Static Public Member Functions

static bool AllowedForPlayer (Player const *player, Loot const *loot, uint32 itemid, bool needs_quest, bool follow_loot_rules, bool strictUsabilityCheck, ConditionsReference const &conditions)
 

Public Attributes

uint32 itemid
 
uint32 LootListId
 
ItemRandomBonusListId randomBonusListId
 
std::vector< int32BonusListIDs
 
ItemContext context
 
ConditionsReference conditions
 
GuidSet allowedGUIDs
 
ObjectGuid rollWinnerGUID
 
uint8 count: 8
 
bool is_looted: 1
 
bool is_blocked: 1
 
bool freeforall: 1
 
bool is_underthreshold: 1
 
bool is_counted: 1
 
bool needs_quest: 1
 
bool follow_loot_rules: 1
 

Detailed Description

Definition at line 175 of file Loot.h.

Constructor & Destructor Documentation

◆ LootItem() [1/4]

LootItem::LootItem ( LootStoreItem const &  li)
explicit

Definition at line 43 of file Loot.cpp.

+ Here is the call graph for this function:

◆ LootItem() [2/4]

LootItem::LootItem ( )
inline

Definition at line 199 of file Loot.h.

◆ LootItem() [3/4]

LootItem::LootItem ( LootItem const &  )
default

◆ LootItem() [4/4]

LootItem::LootItem ( LootItem &&  )
defaultnoexcept

◆ ~LootItem()

LootItem::~LootItem ( )
default

Member Function Documentation

◆ AddAllowedLooter()

void LootItem::AddAllowedLooter ( Player const *  player)

Definition at line 131 of file Loot.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AllowedForPlayer() [1/2]

bool LootItem::AllowedForPlayer ( Player const *  player,
Loot const *  loot 
) const

Definition at line 72 of file Loot.cpp.

+ Here is the caller graph for this function:

◆ AllowedForPlayer() [2/2]

bool LootItem::AllowedForPlayer ( Player const *  player,
Loot const *  loot,
uint32  itemid,
bool  needs_quest,
bool  follow_loot_rules,
bool  strictUsabilityCheck,
ConditionsReference const &  conditions 
)
static

Definition at line 77 of file Loot.cpp.

+ Here is the call graph for this function:

◆ GetAllowedLooters()

GuidSet const & LootItem::GetAllowedLooters ( ) const
inline

Definition at line 213 of file Loot.h.

+ Here is the caller graph for this function:

◆ GetUiTypeForPlayer()

Optional< LootSlotType > LootItem::GetUiTypeForPlayer ( Player const *  player,
Loot const &  loot 
) const

Definition at line 141 of file Loot.cpp.

+ Here is the call graph for this function:

◆ HasAllowedLooter()

bool LootItem::HasAllowedLooter ( ObjectGuid const &  looter) const

Definition at line 136 of file Loot.cpp.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

LootItem & LootItem::operator= ( LootItem &&  )
defaultnoexcept

◆ operator=() [2/2]

LootItem & LootItem::operator= ( LootItem const &  )
default

Member Data Documentation

◆ allowedGUIDs

GuidSet LootItem::allowedGUIDs

Definition at line 183 of file Loot.h.

◆ BonusListIDs

std::vector<int32> LootItem::BonusListIDs

Definition at line 180 of file Loot.h.

◆ conditions

ConditionsReference LootItem::conditions

Definition at line 182 of file Loot.h.

◆ context

ItemContext LootItem::context

Definition at line 181 of file Loot.h.

◆ count

uint8 LootItem::count

Definition at line 185 of file Loot.h.

◆ follow_loot_rules

bool LootItem::follow_loot_rules

Definition at line 192 of file Loot.h.

◆ freeforall

bool LootItem::freeforall

Definition at line 188 of file Loot.h.

◆ is_blocked

bool LootItem::is_blocked

Definition at line 187 of file Loot.h.

◆ is_counted

bool LootItem::is_counted

Definition at line 190 of file Loot.h.

◆ is_looted

bool LootItem::is_looted

Definition at line 186 of file Loot.h.

◆ is_underthreshold

bool LootItem::is_underthreshold

Definition at line 189 of file Loot.h.

◆ itemid

uint32 LootItem::itemid

Definition at line 177 of file Loot.h.

◆ LootListId

uint32 LootItem::LootListId

Definition at line 178 of file Loot.h.

◆ needs_quest

bool LootItem::needs_quest

Definition at line 191 of file Loot.h.

◆ randomBonusListId

ItemRandomBonusListId LootItem::randomBonusListId

Definition at line 179 of file Loot.h.

◆ rollWinnerGUID

ObjectGuid LootItem::rollWinnerGUID

Definition at line 184 of file Loot.h.


The documentation for this struct was generated from the following files: