TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Roll Class Reference

#include <Group.h>

Public Types

typedef std::map< ObjectGuid,
RollVote
PlayerVote
 

Public Member Functions

 Roll (ObjectGuid _guid, LootItem const &li)
 
 ~Roll ()
 
void setLoot (Loot *pLoot)
 
LootgetLoot ()
 
void targetObjectBuildLink () override
 
- Public Member Functions inherited from LootValidatorRef
 LootValidatorRef ()
 
void targetObjectDestroyLink () override
 
void sourceObjectDestroyLink () override
 
- Public Member Functions inherited from Reference< Loot, LootValidatorRef >
 Reference ()
 
virtual ~Reference ()
 
void link (Loot *toObj, LootValidatorRef *fromObj)
 
void unlink ()
 
void invalidate ()
 
bool isValid () const
 
Reference< Loot,
LootValidatorRef > * 
next ()
 
Reference< Loot,
LootValidatorRef > const
next () const
 
Reference< Loot,
LootValidatorRef > * 
prev ()
 
Reference< Loot,
LootValidatorRef > const
prev () const
 
Reference< Loot,
LootValidatorRef > * 
nocheck_next ()
 
Reference< Loot,
LootValidatorRef > const
nocheck_next () const
 
Reference< Loot,
LootValidatorRef > * 
nocheck_prev ()
 
Reference< Loot,
LootValidatorRef > const
nocheck_prev () const
 
Lootoperator-> () const
 
LootgetTarget () const
 
LootValidatorRefGetSource () const
 
- Public Member Functions inherited from LinkedListElement
 LinkedListElement ()
 
virtual ~LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElementnext ()
 
LinkedListElement constnext () const
 
LinkedListElementprev ()
 
LinkedListElement constprev () const
 
LinkedListElementnocheck_next ()
 
LinkedListElement constnocheck_next () const
 
LinkedListElementnocheck_prev ()
 
LinkedListElement constnocheck_prev () const
 
void delink ()
 
void insertBefore (LinkedListElement *pElem)
 
void insertAfter (LinkedListElement *pElem)
 

Public Attributes

ObjectGuid itemGUID
 
uint32 itemid
 
int32 itemRandomPropId
 
uint32 itemRandomSuffix
 
uint8 itemCount
 
PlayerVote playerVote
 
uint8 totalPlayersRolling
 
uint8 totalNeed
 
uint8 totalGreed
 
uint8 totalPass
 
uint8 itemSlot
 
uint8 rollVoteMask
 

Additional Inherited Members

Member Typedef Documentation

typedef std::map<ObjectGuid, RollVote> Roll::PlayerVote

Constructor & Destructor Documentation

Roll::Roll ( ObjectGuid  _guid,
LootItem const li 
)
41  : itemGUID(_guid), itemid(li.itemid),
42 itemRandomPropId(li.randomPropertyId), itemRandomSuffix(li.randomSuffix), itemCount(li.count),
uint8 totalPlayersRolling
Definition: Group.h:160
uint32 itemRandomSuffix
Definition: Group.h:156
uint8 rollVoteMask
Definition: Group.h:165
uint32 itemid
Definition: Group.h:154
int32 itemRandomPropId
Definition: Group.h:155
ObjectGuid itemGUID
Definition: Group.h:153
uint8 totalNeed
Definition: Group.h:161
uint8 itemCount
Definition: Group.h:157
Definition: LootMgr.h:56
uint8 itemSlot
Definition: Group.h:164
uint8 totalPass
Definition: Group.h:163
uint8 totalGreed
Definition: Group.h:162
Roll::~Roll ( )
46 { }

Member Function Documentation

Loot * Roll::getLoot ( )
54 {
55  return getTarget();
56 }
Loot * getTarget() const
Definition: Reference.h:94

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Roll::setLoot ( Loot pLoot)
49 {
50  link(pLoot, this);
51 }
void link(Loot *toObj, LootValidatorRef *fromObj)
Definition: Reference.h:46

+ Here is the call graph for this function:

void Roll::targetObjectBuildLink ( )
overridevirtual

Implements Reference< Loot, LootValidatorRef >.

2003 {
2004  // called from link()
2005  getTarget()->addLootValidatorRef(this);
2006 }
void addLootValidatorRef(LootValidatorRef *pLootValidatorRef)
Definition: LootMgr.h:343
Loot * getTarget() const
Definition: Reference.h:94

+ Here is the call graph for this function:

Member Data Documentation

uint8 Roll::itemCount
ObjectGuid Roll::itemGUID
uint32 Roll::itemid
int32 Roll::itemRandomPropId
uint32 Roll::itemRandomSuffix
uint8 Roll::itemSlot
PlayerVote Roll::playerVote
uint8 Roll::rollVoteMask
uint8 Roll::totalGreed
uint8 Roll::totalNeed
uint8 Roll::totalPass
uint8 Roll::totalPlayersRolling

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