Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Roll Class Reference

#include <Group.h>

Inheritance diagram for Roll:
Collaboration diagram for Roll:

Public Types

typedef std::map< uint64, RollTypePlayerVote

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 111 of file Group.h.

Member Typedef Documentation

◆ PlayerVote

typedef std::map<uint64, RollType> Roll::PlayerVote

Definition at line 125 of file Group.h.

Constructor & Destructor Documentation

◆ Roll()

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

◆ ~Roll()

Roll::~Roll ( )

Definition at line 31 of file Group.cpp.

Member Function Documentation

◆ getLoot()

Loot * Roll::getLoot ( )

◆ setLoot()

void Roll::setLoot ( Loot * pLoot)

Definition at line 33 of file Group.cpp.

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

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

◆ targetObjectBuildLink()

void Roll::targetObjectBuildLink ( )
virtual

Member Data Documentation

◆ itemCount

uint8 Roll::itemCount

Definition at line 124 of file Group.h.

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

◆ itemGUID

◆ itemid

◆ itemRandomPropId

◆ itemRandomSuffix

◆ itemSlot

◆ playerVote

◆ rollVoteMask

◆ totalGreed

uint8 Roll::totalGreed

Definition at line 129 of file Group.h.

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

◆ totalNeed

uint8 Roll::totalNeed

Definition at line 128 of file Group.h.

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

◆ totalPass

uint8 Roll::totalPass

◆ totalPlayersRolling


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