![]() |
TrinityCore
|
#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. | |
| LfgState | m_OldState |
| Old State. | |
| ObjectGuid | m_Leader |
| Leader GUID. | |
| GuidSet | m_Players |
| Players in group. | |
| uint32 | m_Dungeon |
| Dungeon entry. | |
| uint8 | m_KicksLeft |
| Number of kicks left. | |
| 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 24 of file LFGGroupData.cpp.
| lfg::LfgGroupData::~LfgGroupData | ( | ) |
Definition at line 28 of file LFGGroupData.cpp.
| void lfg::LfgGroupData::AddPlayer | ( | ObjectGuid | guid | ) |
Definition at line 58 of file LFGGroupData.cpp.
References m_Players.
| void lfg::LfgGroupData::DecreaseKicksLeft | ( | ) |
Definition at line 86 of file LFGGroupData.cpp.
References m_KicksLeft.
| uint32 lfg::LfgGroupData::GetDungeon | ( | bool | asId = true | ) | const |
Definition at line 117 of file LFGGroupData.cpp.
References m_Dungeon.
| uint8 lfg::LfgGroupData::GetKicksLeft | ( | ) | const |
Definition at line 125 of file LFGGroupData.cpp.
References m_KicksLeft.
| ObjectGuid lfg::LfgGroupData::GetLeader | ( | ) | const |
Definition at line 112 of file LFGGroupData.cpp.
References m_Leader.
| LfgState lfg::LfgGroupData::GetOldState | ( | ) | const |
Definition at line 97 of file LFGGroupData.cpp.
References m_OldState.
Referenced by lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().
| uint8 lfg::LfgGroupData::GetPlayerCount | ( | ) | const |
Definition at line 107 of file LFGGroupData.cpp.
References m_Players.
| GuidSet const & lfg::LfgGroupData::GetPlayers | ( | ) | const |
Definition at line 102 of file LFGGroupData.cpp.
References m_Players.
| LfgState lfg::LfgGroupData::GetState | ( | ) | const |
Definition at line 92 of file LFGGroupData.cpp.
References m_State.
Referenced by lfg::LFGMgr::RestoreState(), and lfg::LFGMgr::SetState().
| bool lfg::LfgGroupData::IsLfgGroup | ( | ) |
Definition at line 31 of file LFGGroupData.cpp.
References lfg::LFG_STATE_NONE, and m_OldState.
| bool lfg::LfgGroupData::IsVoteKickActive | ( | ) | const |
Definition at line 135 of file LFGGroupData.cpp.
References m_VoteKickActive.
Referenced by lfg::LFGMgr::SetVoteKick().
| void lfg::LfgGroupData::RemoveAllPlayers | ( | ) |
Definition at line 71 of file LFGGroupData.cpp.
References m_Players.
| uint8 lfg::LfgGroupData::RemovePlayer | ( | ObjectGuid | guid | ) |
Definition at line 63 of file LFGGroupData.cpp.
References m_Players.
| void lfg::LfgGroupData::RestoreState | ( | ) |
Definition at line 53 of file LFGGroupData.cpp.
References m_OldState, and m_State.
Referenced by lfg::LFGMgr::RestoreState().
| void lfg::LfgGroupData::SetDungeon | ( | uint32 | dungeon | ) |
Definition at line 81 of file LFGGroupData.cpp.
References m_Dungeon.
| void lfg::LfgGroupData::SetLeader | ( | ObjectGuid | guid | ) |
Definition at line 76 of file LFGGroupData.cpp.
References m_Leader.
| void lfg::LfgGroupData::SetState | ( | LfgState | state | ) |
Definition at line 36 of file LFGGroupData.cpp.
References lfg::LFG_GROUP_MAX_KICKS, lfg::LFG_STATE_DUNGEON, lfg::LFG_STATE_FINISHED_DUNGEON, lfg::LFG_STATE_NONE, m_Dungeon, m_KicksLeft, m_OldState, and m_State.
Referenced by lfg::LFGMgr::SetState().
| void lfg::LfgGroupData::SetVoteKick | ( | bool | active | ) |
Definition at line 130 of file LFGGroupData.cpp.
References m_VoteKickActive.
Referenced by lfg::LFGMgr::SetVoteKick().
|
private |
Dungeon entry.
Definition at line 79 of file LFGGroupData.h.
Referenced by GetDungeon(), SetDungeon(), and SetState().
|
private |
Number of kicks left.
Definition at line 81 of file LFGGroupData.h.
Referenced by DecreaseKicksLeft(), GetKicksLeft(), and SetState().
|
private |
Leader GUID.
Definition at line 76 of file LFGGroupData.h.
Referenced by GetLeader(), and SetLeader().
|
private |
Old State.
Definition at line 75 of file LFGGroupData.h.
Referenced by GetOldState(), IsLfgGroup(), RestoreState(), and SetState().
|
private |
Players in group.
Definition at line 77 of file LFGGroupData.h.
Referenced by AddPlayer(), GetPlayerCount(), GetPlayers(), RemoveAllPlayers(), and RemovePlayer().
|
private |
State if group in LFG.
Definition at line 74 of file LFGGroupData.h.
Referenced by GetState(), RestoreState(), and SetState().
|
private |
Definition at line 82 of file LFGGroupData.h.
Referenced by IsVoteKickActive(), and SetVoteKick().