TrinityCore
lfg::LfgGroupData Class Reference

#include <LFGGroupData.h>

Public Member Functions

 LfgGroupData ()
 
 ~LfgGroupData ()
 
bool IsLfgGroup ()
 
void SetState (LfgState state)
 
void RestoreState ()
 
void AddPlayer (ObjectGuid guid)
 
uint8 RemovePlayer (ObjectGuid guid)
 
void RemoveAllPlayers ()
 
void SetLeader (ObjectGuid guid)
 
void SetDungeon (uint32 dungeon)
 
void DecreaseKicksLeft ()
 
LfgState GetState () const
 
LfgState GetOldState () const
 
GuidSet const & GetPlayers () const
 
uint8 GetPlayerCount () const
 
ObjectGuid GetLeader () const
 
uint32 GetDungeon (bool asId=true) const
 
uint8 GetKicksLeft () const
 
void SetVoteKick (bool active)
 
bool IsVoteKickActive () const
 

Private Attributes

LfgState m_State
 State if group in LFG. More...
 
LfgState m_OldState
 Old State. More...
 
ObjectGuid m_Leader
 Leader GUID. More...
 
GuidSet m_Players
 Players in group. More...
 
uint32 m_Dungeon
 Dungeon entry. More...
 
uint8 m_KicksLeft
 Number of kicks left. More...
 
bool m_VoteKickActive
 

Detailed Description

Stores all lfg data needed about a group.

Definition at line 34 of file LFGGroupData.h.

Constructor & Destructor Documentation

◆ LfgGroupData()

lfg::LfgGroupData::LfgGroupData ( )

Definition at line 24 of file LFGGroupData.cpp.

◆ ~LfgGroupData()

lfg::LfgGroupData::~LfgGroupData ( )

Definition at line 28 of file LFGGroupData.cpp.

Member Function Documentation

◆ AddPlayer()

void lfg::LfgGroupData::AddPlayer ( ObjectGuid  guid)

Definition at line 58 of file LFGGroupData.cpp.

◆ DecreaseKicksLeft()

void lfg::LfgGroupData::DecreaseKicksLeft ( )

Definition at line 86 of file LFGGroupData.cpp.

◆ GetDungeon()

uint32 lfg::LfgGroupData::GetDungeon ( bool  asId = true) const

Definition at line 117 of file LFGGroupData.cpp.

◆ GetKicksLeft()

uint8 lfg::LfgGroupData::GetKicksLeft ( ) const

Definition at line 125 of file LFGGroupData.cpp.

◆ GetLeader()

ObjectGuid lfg::LfgGroupData::GetLeader ( ) const

Definition at line 112 of file LFGGroupData.cpp.

◆ GetOldState()

LfgState lfg::LfgGroupData::GetOldState ( ) const

Definition at line 97 of file LFGGroupData.cpp.

+ Here is the caller graph for this function:

◆ GetPlayerCount()

uint8 lfg::LfgGroupData::GetPlayerCount ( ) const

Definition at line 107 of file LFGGroupData.cpp.

◆ GetPlayers()

GuidSet const & lfg::LfgGroupData::GetPlayers ( ) const

Definition at line 102 of file LFGGroupData.cpp.

◆ GetState()

LfgState lfg::LfgGroupData::GetState ( ) const

Definition at line 92 of file LFGGroupData.cpp.

+ Here is the caller graph for this function:

◆ IsLfgGroup()

bool lfg::LfgGroupData::IsLfgGroup ( )

Definition at line 31 of file LFGGroupData.cpp.

◆ IsVoteKickActive()

bool lfg::LfgGroupData::IsVoteKickActive ( ) const

Definition at line 135 of file LFGGroupData.cpp.

+ Here is the caller graph for this function:

◆ RemoveAllPlayers()

void lfg::LfgGroupData::RemoveAllPlayers ( )

Definition at line 71 of file LFGGroupData.cpp.

◆ RemovePlayer()

uint8 lfg::LfgGroupData::RemovePlayer ( ObjectGuid  guid)

Definition at line 63 of file LFGGroupData.cpp.

◆ RestoreState()

void lfg::LfgGroupData::RestoreState ( )

Definition at line 53 of file LFGGroupData.cpp.

+ Here is the caller graph for this function:

◆ SetDungeon()

void lfg::LfgGroupData::SetDungeon ( uint32  dungeon)

Definition at line 81 of file LFGGroupData.cpp.

◆ SetLeader()

void lfg::LfgGroupData::SetLeader ( ObjectGuid  guid)

Definition at line 76 of file LFGGroupData.cpp.

◆ SetState()

void lfg::LfgGroupData::SetState ( LfgState  state)

Definition at line 36 of file LFGGroupData.cpp.

+ Here is the caller graph for this function:

◆ SetVoteKick()

void lfg::LfgGroupData::SetVoteKick ( bool  active)

Definition at line 130 of file LFGGroupData.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_Dungeon

uint32 lfg::LfgGroupData::m_Dungeon
private

Dungeon entry.

Definition at line 79 of file LFGGroupData.h.

◆ m_KicksLeft

uint8 lfg::LfgGroupData::m_KicksLeft
private

Number of kicks left.

Definition at line 81 of file LFGGroupData.h.

◆ m_Leader

ObjectGuid lfg::LfgGroupData::m_Leader
private

Leader GUID.

Definition at line 76 of file LFGGroupData.h.

◆ m_OldState

LfgState lfg::LfgGroupData::m_OldState
private

Old State.

Definition at line 75 of file LFGGroupData.h.

◆ m_Players

GuidSet lfg::LfgGroupData::m_Players
private

Players in group.

Definition at line 77 of file LFGGroupData.h.

◆ m_State

LfgState lfg::LfgGroupData::m_State
private

State if group in LFG.

Definition at line 74 of file LFGGroupData.h.

◆ m_VoteKickActive

bool lfg::LfgGroupData::m_VoteKickActive
private

Definition at line 82 of file LFGGroupData.h.


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