TrinityCore
Loading...
Searching...
No Matches
Roll Class Reference

#include <Group.h>

+ Inheritance diagram for Roll:

Public Types

typedef std::map< ObjectGuid, RollVotePlayerVote
 

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 ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElementnext ()
 
LinkedListElement const * next () const
 
LinkedListElementprev ()
 
LinkedListElement const * prev () const
 
LinkedListElementnocheck_next ()
 
LinkedListElement const * nocheck_next () const
 
LinkedListElementnocheck_prev ()
 
LinkedListElement const * nocheck_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

- Protected Member Functions inherited from LinkedListElement
 ~LinkedListElement ()
 

Detailed Description

Definition at line 129 of file Group.h.

Member Typedef Documentation

◆ PlayerVote

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

Definition at line 143 of file Group.h.

Constructor & Destructor Documentation

◆ Roll()

Roll::Roll ( ObjectGuid  _guid,
LootItem const &  li 
)

Definition at line 45 of file Group.cpp.

◆ ~Roll()

Roll::~Roll ( )

Definition at line 50 of file Group.cpp.

Member Function Documentation

◆ getLoot()

Loot * Roll::getLoot ( )

Definition at line 57 of file Group.cpp.

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

◆ setLoot()

void Roll::setLoot ( Loot pLoot)

Definition at line 52 of file Group.cpp.

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

◆ targetObjectBuildLink()

void Roll::targetObjectBuildLink ( )
overridevirtual

Implements Reference< Loot, LootValidatorRef >.

Definition at line 2098 of file Group.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ itemCount

uint8 Roll::itemCount

Definition at line 142 of file Group.h.

◆ itemGUID

ObjectGuid Roll::itemGUID

Definition at line 138 of file Group.h.

◆ itemid

uint32 Roll::itemid

Definition at line 139 of file Group.h.

◆ itemRandomPropId

int32 Roll::itemRandomPropId

Definition at line 140 of file Group.h.

◆ itemRandomSuffix

uint32 Roll::itemRandomSuffix

Definition at line 141 of file Group.h.

◆ itemSlot

uint8 Roll::itemSlot

Definition at line 149 of file Group.h.

◆ playerVote

PlayerVote Roll::playerVote

Definition at line 144 of file Group.h.

◆ rollVoteMask

uint8 Roll::rollVoteMask

Definition at line 150 of file Group.h.

◆ totalGreed

uint8 Roll::totalGreed

Definition at line 147 of file Group.h.

◆ totalNeed

uint8 Roll::totalNeed

Definition at line 146 of file Group.h.

◆ totalPass

uint8 Roll::totalPass

Definition at line 148 of file Group.h.

◆ totalPlayersRolling

uint8 Roll::totalPlayersRolling

Definition at line 145 of file Group.h.


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