AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#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 |
LfgGuidSet const & | GetPlayers () const |
uint8 | GetPlayerCount () const |
ObjectGuid | GetLeader () const |
uint32 | GetDungeon (bool asId=true) const |
uint8 | GetKicksLeft () const |
Private Attributes | |
LfgState | m_State |
State if group in LFG. More... | |
LfgState | m_OldState |
Old State. More... | |
ObjectGuid | m_Leader |
Leader GUID. More... | |
LfgGuidSet | m_Players |
Players in group. More... | |
uint32 | m_Dungeon |
Dungeon entry. More... | |
bool | _isLFGGroup |
uint8 | m_KicksLeft |
Number of kicks left. More... | |
Stores all lfg data needed about a group.
lfg::LfgGroupData::LfgGroupData | ( | ) |
lfg::LfgGroupData::~LfgGroupData | ( | ) |
void lfg::LfgGroupData::AddPlayer | ( | ObjectGuid | guid | ) |
void lfg::LfgGroupData::DecreaseKicksLeft | ( | ) |
References m_KicksLeft.
uint32 lfg::LfgGroupData::GetDungeon | ( | bool | asId = true | ) | const |
uint8 lfg::LfgGroupData::GetKicksLeft | ( | ) | const |
References m_KicksLeft.
ObjectGuid lfg::LfgGroupData::GetLeader | ( | ) | const |
References m_Leader.
LfgState lfg::LfgGroupData::GetOldState | ( | ) | const |
uint8 lfg::LfgGroupData::GetPlayerCount | ( | ) | const |
LfgGuidSet const & lfg::LfgGroupData::GetPlayers | ( | ) | const |
LfgState lfg::LfgGroupData::GetState | ( | ) | const |
bool lfg::LfgGroupData::IsLfgGroup | ( | ) |
References _isLFGGroup.
uint8 lfg::LfgGroupData::RemovePlayer | ( | ObjectGuid | guid | ) |
void lfg::LfgGroupData::RestoreState | ( | ) |
References m_OldState, and m_State.
Referenced by lfg::LFGMgr::RestoreState().
void lfg::LfgGroupData::SetDungeon | ( | uint32 | dungeon | ) |
void lfg::LfgGroupData::SetLeader | ( | ObjectGuid | guid | ) |
void lfg::LfgGroupData::SetState | ( | LfgState | state | ) |
References _isLFGGroup, CONFIG_LFG_MAX_KICK_COUNT, lfg::LFG_STATE_DUNGEON, lfg::LFG_STATE_FINISHED_DUNGEON, lfg::LFG_STATE_NONE, m_Dungeon, m_KicksLeft, m_OldState, m_State, and sWorld.
Referenced by lfg::LFGMgr::SetState().
|
private |
Referenced by IsLfgGroup(), and SetState().
|
private |
Dungeon entry.
Referenced by GetDungeon(), SetDungeon(), and SetState().
|
private |
Number of kicks left.
Referenced by DecreaseKicksLeft(), GetKicksLeft(), and SetState().
|
private |
Leader GUID.
Referenced by GetLeader(), and SetLeader().
|
private |
Old State.
Referenced by GetOldState(), RestoreState(), and SetState().
|
private |
Players in group.
Referenced by AddPlayer(), GetPlayerCount(), GetPlayers(), RemoveAllPlayers(), and RemovePlayer().
|
private |
State if group in LFG.
Referenced by GetState(), RestoreState(), and SetState().