|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#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 | |
| LfgGroupQueueData & | GetActiveQueueData () |
| 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 |
Stores all lfg data needed about a group.
Definition at line 34 of file LFGGroupData.h.
| lfg::LfgGroupData::LfgGroupData | ( | ) |
Definition at line 23 of file LFGGroupData.cpp.
References lfg::LFG_GROUP_MAX_KICKS, m_ActiveQueueId, m_KicksLeft, m_Leader, and m_VoteKickActive.
| lfg::LfgGroupData::~LfgGroupData | ( | ) |
Definition at line 27 of file LFGGroupData.cpp.
| void lfg::LfgGroupData::AddPlayer | ( | uint64 | guid | ) |
Definition at line 64 of file LFGGroupData.cpp.
References m_Players.
| void lfg::LfgGroupData::DecreaseKicksLeft | ( | ) |
Definition at line 98 of file LFGGroupData.cpp.
References m_KicksLeft.
|
private |
Definition at line 162 of file LFGGroupData.cpp.
References m_ActiveQueueId, and m_Queues.
Referenced by GetDungeon(), GetOldState(), GetState(), RestoreState(), SetActiveQueueId(), SetDungeon(), and SetState().
|
private |
Definition at line 167 of file LFGGroupData.cpp.
References m_ActiveQueueId, and m_Queues.
| uint8 lfg::LfgGroupData::GetActiveQueueId | ( | ) | const |
Definition at line 129 of file LFGGroupData.cpp.
References m_ActiveQueueId.
Referenced by lfg::LFGMgr::DumpGroupInfo(), lfg::LFGMgr::GetQueueId(), and lfg::LFGMgr::RestoreActiveQueue().
| 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().
| uint8 lfg::LfgGroupData::GetKicksLeft | ( | ) | const |
Definition at line 148 of file LFGGroupData.cpp.
References m_KicksLeft.
Referenced by lfg::LFGMgr::DumpGroupInfo().
| uint64 lfg::LfgGroupData::GetLeader | ( | ) | const |
Definition at line 124 of file LFGGroupData.cpp.
References m_Leader.
Referenced by lfg::LFGMgr::DumpGroupInfo().
| LfgState lfg::LfgGroupData::GetOldState | ( | ) | const |
Definition at line 109 of file LFGGroupData.cpp.
References GetActiveQueueData(), and lfg::LfgGroupQueueData::OldState.
Referenced by lfg::LFGMgr::DumpGroupInfo(), IsLfgGroup(), lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().
| uint8 lfg::LfgGroupData::GetPlayerCount | ( | ) | const |
Definition at line 119 of file LFGGroupData.cpp.
References m_Players.
| LfgGuidSet const & lfg::LfgGroupData::GetPlayers | ( | ) | const |
Definition at line 114 of file LFGGroupData.cpp.
References m_Players.
Referenced by lfg::LFGMgr::DumpGroupInfo().
| LfgGroupQueueDataContainer const & lfg::LfgGroupData::GetQueues | ( | ) | const |
Definition at line 134 of file LFGGroupData.cpp.
References m_Queues.
Referenced by lfg::LFGMgr::DumpGroupInfo(), lfg::LFGMgr::GetQueueId(), and lfg::LFGMgr::RestoreActiveQueue().
| LfgState lfg::LfgGroupData::GetState | ( | ) | const |
Definition at line 104 of file LFGGroupData.cpp.
References GetActiveQueueData(), and lfg::LfgGroupQueueData::State.
Referenced by lfg::LFGMgr::DumpGroupInfo(), lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().
| 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().
| 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().
| void lfg::LfgGroupData::RemoveAllPlayers | ( | ) |
Definition at line 77 of file LFGGroupData.cpp.
References m_Players.
Definition at line 69 of file LFGGroupData.cpp.
References m_Players.
| void lfg::LfgGroupData::RestoreState | ( | ) |
Definition at line 58 of file LFGGroupData.cpp.
References GetActiveQueueData(), lfg::LfgGroupQueueData::OldState, and lfg::LfgGroupQueueData::State.
Referenced by lfg::LFGMgr::RestoreState().
| void lfg::LfgGroupData::SetActiveQueueId | ( | uint8 | queueId | ) |
Definition at line 87 of file LFGGroupData.cpp.
References GetActiveQueueData(), and m_ActiveQueueId.
Referenced by lfg::LFGMgr::RestoreActiveQueue().
| void lfg::LfgGroupData::SetDungeon | ( | uint32 | dungeon | ) |
Definition at line 93 of file LFGGroupData.cpp.
References lfg::LfgGroupQueueData::Dungeon, and GetActiveQueueData().
| void lfg::LfgGroupData::SetLeader | ( | uint64 | guid | ) |
Definition at line 82 of file LFGGroupData.cpp.
References m_Leader.
| void lfg::LfgGroupData::SetState | ( | LfgState | state | ) |
Definition at line 35 of file LFGGroupData.cpp.
References lfg::LfgGroupQueueData::Dungeon, GetActiveQueueData(), lfg::LFG_GROUP_MAX_KICKS, lfg::LFG_STATE_DUNGEON, lfg::LFG_STATE_FINISHED_DUNGEON, lfg::LFG_STATE_NONE, m_ActiveQueueId, m_KicksLeft, m_Queues, lfg::LfgGroupQueueData::OldState, and lfg::LfgGroupQueueData::State.
Referenced by lfg::LFGMgr::SetState().
| void lfg::LfgGroupData::SetVoteKick | ( | bool | active | ) |
Definition at line 153 of file LFGGroupData.cpp.
References m_VoteKickActive.
Referenced by lfg::LFGMgr::SetVoteKick().
|
private |
Active queue data owner.
Definition at line 81 of file LFGGroupData.h.
Referenced by GetActiveQueueData(), GetActiveQueueData(), GetActiveQueueId(), LfgGroupData(), SetActiveQueueId(), and SetState().
|
private |
Number of kicks left.
Definition at line 84 of file LFGGroupData.h.
Referenced by DecreaseKicksLeft(), GetKicksLeft(), LfgGroupData(), and SetState().
|
private |
Leader GUID.
Definition at line 79 of file LFGGroupData.h.
Referenced by GetLeader(), LfgGroupData(), and SetLeader().
|
private |
Players in group.
Definition at line 80 of file LFGGroupData.h.
Referenced by AddPlayer(), GetPlayerCount(), GetPlayers(), RemoveAllPlayers(), and RemovePlayer().
|
private |
Queue-scoped group data.
Definition at line 82 of file LFGGroupData.h.
Referenced by GetActiveQueueData(), GetActiveQueueData(), GetQueues(), and SetState().
|
private |
Definition at line 85 of file LFGGroupData.h.
Referenced by IsVoteKickActive(), LfgGroupData(), and SetVoteKick().