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 randomPropertySeed
 
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 148 of file Loot.h.

Constructor & Destructor Documentation

◆ LootItem() [1/2]

◆ LootItem() [2/2]

LootItem::LootItem ( )
inline

Definition at line 171 of file Loot.h.

Member Function Documentation

◆ AddAllowedLooter()

void LootItem::AddAllowedLooter ( Player const *  player)

◆ AllowedForPlayer() [1/3]

◆ AllowedForPlayer() [2/3]

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

Definition at line 63 of file Loot.cpp.

References AllowedForPlayer(), and ObjectGuid::Empty.

◆ AllowedForPlayer() [3/3]

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

Definition at line 58 of file Loot.cpp.

References AllowedForPlayer().

◆ GetAllowedLooters()

GuidSet const & LootItem::GetAllowedLooters ( ) const
inline

Member Data Documentation

◆ allowedGUIDs

GuidSet LootItem::allowedGUIDs

Definition at line 155 of file Loot.h.

Referenced by AddAllowedLooter().

◆ conditions

◆ count

◆ follow_loot_rules

◆ freeforall

◆ is_blocked

◆ is_counted

◆ is_looted

◆ is_underthreshold

bool LootItem::is_underthreshold

◆ itemid

◆ itemIndex

◆ needs_quest

◆ randomPropertyId

◆ randomPropertySeed

◆ rollWinnerGUID

ObjectGuid LootItem::rollWinnerGUID

Definition at line 156 of file Loot.h.

Referenced by Group::CountTheRoll(), LootItem(), and Player::StoreLootItem().


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