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

#include <Group.h>

+ Inheritance diagram for Roll:

Public Types

typedef std::map< ObjectGuid, RollVote > PlayerVote
 

Public Member Functions

 Roll (ObjectGuid _guid, LootItem const &li)
 
 ~Roll ()
 
void setLoot (Loot *pLoot)
 
Loot * getLoot ()
 
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
 
Loot * operator-> () const
 
Loot * getTarget () const
 
LootValidatorRef * GetSource () const
 
- Public Member Functions inherited from LinkedListElement
 LinkedListElement ()
 
bool hasNext () const
 
bool hasPrev () const
 
bool isInList () const
 
LinkedListElement * next ()
 
LinkedListElement const * next () const
 
LinkedListElement * prev ()
 
LinkedListElement const * prev () const
 
LinkedListElement * nocheck_next ()
 
LinkedListElement const * nocheck_next () const
 
LinkedListElement * nocheck_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 itemRandomPropertySeed
 
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 ( )

◆ setLoot()

void Roll::setLoot ( Loot *  pLoot)

Definition at line 52 of file Group.cpp.

References Reference< Loot, LootValidatorRef >::link().

Referenced by Group::GroupLoot(), and Group::NeedBeforeGreed().

◆ targetObjectBuildLink()

void Roll::targetObjectBuildLink ( )
overridevirtual

Member Data Documentation

◆ itemCount

uint8 Roll::itemCount

Definition at line 142 of file Group.h.

Referenced by Group::SendLootStartRoll(), and Group::SendLootStartRollToPlayer().

◆ itemGUID

◆ itemid

◆ itemRandomPropertySeed

◆ itemRandomPropId

◆ itemSlot

◆ playerVote

◆ rollVoteMask

◆ totalGreed

uint8 Roll::totalGreed

Definition at line 147 of file Group.h.

Referenced by Group::CountRollVote(), Group::CountTheRoll(), and Group::RemoveMember().

◆ totalNeed

uint8 Roll::totalNeed

Definition at line 146 of file Group.h.

Referenced by Group::CountRollVote(), Group::CountTheRoll(), and Group::RemoveMember().

◆ totalPass

uint8 Roll::totalPass

◆ totalPlayersRolling

uint8 Roll::totalPlayersRolling

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