Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
lfg::LfgGroupData Class Reference

#include <LFGGroupData.h>

Public Member Functions

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

Private Member Functions

LfgGroupQueueDataGetActiveQueueData ()
LfgGroupQueueData const & GetActiveQueueData () const

Private Attributes

uint8 m_ActiveQueueId
 Active queue data owner.
uint8 m_KicksLeft
 Number of kicks left.
uint64 m_Leader
 Leader GUID.
LfgGuidSet m_Players
 Players in group.
LfgGroupQueueDataContainer m_Queues
 Queue-scoped group data.
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 ( )

◆ ~LfgGroupData()

lfg::LfgGroupData::~LfgGroupData ( )

Definition at line 27 of file LFGGroupData.cpp.

Member Function Documentation

◆ AddPlayer()

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

Definition at line 64 of file LFGGroupData.cpp.

References m_Players.

◆ DecreaseKicksLeft()

void lfg::LfgGroupData::DecreaseKicksLeft ( )

Definition at line 98 of file LFGGroupData.cpp.

References m_KicksLeft.

◆ GetActiveQueueData() [1/2]

LfgGroupQueueData & lfg::LfgGroupData::GetActiveQueueData ( )
private

◆ GetActiveQueueData() [2/2]

LfgGroupQueueData const & lfg::LfgGroupData::GetActiveQueueData ( ) const
private

Definition at line 167 of file LFGGroupData.cpp.

References m_ActiveQueueId, and m_Queues.

◆ GetActiveQueueId()

uint8 lfg::LfgGroupData::GetActiveQueueId ( ) const

◆ GetDungeon()

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

Definition at line 139 of file LFGGroupData.cpp.

References lfg::LfgGroupQueueData::Dungeon, and GetActiveQueueData().

Referenced by lfg::LFGMgr::DumpGroupInfo().

◆ GetKicksLeft()

uint8 lfg::LfgGroupData::GetKicksLeft ( ) const

Definition at line 148 of file LFGGroupData.cpp.

References m_KicksLeft.

Referenced by lfg::LFGMgr::DumpGroupInfo().

◆ GetLeader()

uint64 lfg::LfgGroupData::GetLeader ( ) const

Definition at line 124 of file LFGGroupData.cpp.

References m_Leader.

Referenced by lfg::LFGMgr::DumpGroupInfo().

◆ GetOldState()

LfgState lfg::LfgGroupData::GetOldState ( ) const

◆ GetPlayerCount()

uint8 lfg::LfgGroupData::GetPlayerCount ( ) const

Definition at line 119 of file LFGGroupData.cpp.

References m_Players.

◆ GetPlayers()

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

Definition at line 114 of file LFGGroupData.cpp.

References m_Players.

Referenced by lfg::LFGMgr::DumpGroupInfo().

◆ GetQueues()

LfgGroupQueueDataContainer const & lfg::LfgGroupData::GetQueues ( ) const

◆ GetState()

LfgState lfg::LfgGroupData::GetState ( ) const

◆ IsLfgGroup()

bool lfg::LfgGroupData::IsLfgGroup ( ) const

Definition at line 30 of file LFGGroupData.cpp.

References GetOldState(), and lfg::LFG_STATE_NONE.

Referenced by lfg::LFGMgr::DumpGroupInfo().

◆ IsVoteKickActive()

bool lfg::LfgGroupData::IsVoteKickActive ( ) const

Definition at line 157 of file LFGGroupData.cpp.

References m_VoteKickActive.

Referenced by lfg::LFGMgr::DumpGroupInfo(), and lfg::LFGMgr::SetVoteKick().

◆ RemoveAllPlayers()

void lfg::LfgGroupData::RemoveAllPlayers ( )

Definition at line 77 of file LFGGroupData.cpp.

References m_Players.

◆ RemovePlayer()

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

Definition at line 69 of file LFGGroupData.cpp.

References m_Players.

◆ RestoreState()

void lfg::LfgGroupData::RestoreState ( )

◆ SetActiveQueueId()

void lfg::LfgGroupData::SetActiveQueueId ( uint8 queueId)

Definition at line 87 of file LFGGroupData.cpp.

References GetActiveQueueData(), and m_ActiveQueueId.

Referenced by lfg::LFGMgr::RestoreActiveQueue().

◆ SetDungeon()

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

Definition at line 93 of file LFGGroupData.cpp.

References lfg::LfgGroupQueueData::Dungeon, and GetActiveQueueData().

◆ SetLeader()

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

Definition at line 82 of file LFGGroupData.cpp.

References m_Leader.

◆ SetState()

◆ SetVoteKick()

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

Definition at line 153 of file LFGGroupData.cpp.

References m_VoteKickActive.

Referenced by lfg::LFGMgr::SetVoteKick().

Member Data Documentation

◆ m_ActiveQueueId

uint8 lfg::LfgGroupData::m_ActiveQueueId
private

Active queue data owner.

Definition at line 81 of file LFGGroupData.h.

Referenced by GetActiveQueueData(), GetActiveQueueData(), GetActiveQueueId(), LfgGroupData(), SetActiveQueueId(), and SetState().

◆ m_KicksLeft

uint8 lfg::LfgGroupData::m_KicksLeft
private

Number of kicks left.

Definition at line 84 of file LFGGroupData.h.

Referenced by DecreaseKicksLeft(), GetKicksLeft(), LfgGroupData(), and SetState().

◆ m_Leader

uint64 lfg::LfgGroupData::m_Leader
private

Leader GUID.

Definition at line 79 of file LFGGroupData.h.

Referenced by GetLeader(), LfgGroupData(), and SetLeader().

◆ m_Players

LfgGuidSet lfg::LfgGroupData::m_Players
private

Players in group.

Definition at line 80 of file LFGGroupData.h.

Referenced by AddPlayer(), GetPlayerCount(), GetPlayers(), RemoveAllPlayers(), and RemovePlayer().

◆ m_Queues

LfgGroupQueueDataContainer lfg::LfgGroupData::m_Queues
private

Queue-scoped group data.

Definition at line 82 of file LFGGroupData.h.

Referenced by GetActiveQueueData(), GetActiveQueueData(), GetQueues(), and SetState().

◆ m_VoteKickActive

bool lfg::LfgGroupData::m_VoteKickActive
private

Definition at line 85 of file LFGGroupData.h.

Referenced by IsVoteKickActive(), LfgGroupData(), and SetVoteKick().


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