TrinityCore
Loading...
Searching...
No Matches
LootItem Struct Reference

#include <Loot.h>

Public Member Functions

 LootItem (LootStoreItem const &li)
 
 LootItem ()
 
bool AllowedForPlayer (Player const *player, bool isGivenByMasterLooter, ObjectGuid ownerGuid) const
 
bool AllowedForPlayer (Player const *player, bool isGivenByMasterLooter=false) const
 
bool AllowedForPlayer (Player const *player, ObjectGuid ownerGuid) const
 
void AddAllowedLooter (Player const *player)
 
GuidSet const & GetAllowedLooters () const
 

Public Attributes

uint32 itemid
 
uint32 itemIndex
 
uint32 randomSuffix
 
int32 randomPropertyId
 
ConditionContainer conditions
 
GuidSet allowedGUIDs
 
ObjectGuid rollWinnerGUID
 
uint8 count
 
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 125 of file Loot.h.

Constructor & Destructor Documentation

◆ LootItem() [1/2]

LootItem::LootItem ( LootStoreItem const &  li)
explicit

Definition at line 35 of file Loot.cpp.

+ Here is the call graph for this function:

◆ LootItem() [2/2]

LootItem::LootItem ( )
inline

Definition at line 148 of file Loot.h.

Member Function Documentation

◆ AddAllowedLooter()

void LootItem::AddAllowedLooter ( Player const *  player)

Definition at line 130 of file Loot.cpp.

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

◆ AllowedForPlayer() [1/3]

bool LootItem::AllowedForPlayer ( Player const *  player,
bool  isGivenByMasterLooter,
ObjectGuid  ownerGuid 
) const

Definition at line 68 of file Loot.cpp.

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

◆ AllowedForPlayer() [2/3]

bool LootItem::AllowedForPlayer ( Player const *  player,
bool  isGivenByMasterLooter = false 
) const

Definition at line 62 of file Loot.cpp.

+ Here is the call graph for this function:

◆ AllowedForPlayer() [3/3]

bool LootItem::AllowedForPlayer ( Player const *  player,
ObjectGuid  ownerGuid 
) const

Definition at line 57 of file Loot.cpp.

+ Here is the call graph for this function:

◆ GetAllowedLooters()

GuidSet const & LootItem::GetAllowedLooters ( ) const
inline

Definition at line 157 of file Loot.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ allowedGUIDs

GuidSet LootItem::allowedGUIDs

Definition at line 132 of file Loot.h.

◆ conditions

ConditionContainer LootItem::conditions

Definition at line 131 of file Loot.h.

◆ count

uint8 LootItem::count

Definition at line 134 of file Loot.h.

◆ follow_loot_rules

bool LootItem::follow_loot_rules

Definition at line 141 of file Loot.h.

◆ freeforall

bool LootItem::freeforall

Definition at line 137 of file Loot.h.

◆ is_blocked

bool LootItem::is_blocked

Definition at line 136 of file Loot.h.

◆ is_counted

bool LootItem::is_counted

Definition at line 139 of file Loot.h.

◆ is_looted

bool LootItem::is_looted

Definition at line 135 of file Loot.h.

◆ is_underthreshold

bool LootItem::is_underthreshold

Definition at line 138 of file Loot.h.

◆ itemid

uint32 LootItem::itemid

Definition at line 127 of file Loot.h.

◆ itemIndex

uint32 LootItem::itemIndex

Definition at line 128 of file Loot.h.

◆ needs_quest

bool LootItem::needs_quest

Definition at line 140 of file Loot.h.

◆ randomPropertyId

int32 LootItem::randomPropertyId

Definition at line 130 of file Loot.h.

◆ randomSuffix

uint32 LootItem::randomSuffix

Definition at line 129 of file Loot.h.

◆ rollWinnerGUID

ObjectGuid LootItem::rollWinnerGUID

Definition at line 133 of file Loot.h.


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