AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "LFGPlayerData.h"
Public Member Functions | |
LfgPlayerData () | |
~LfgPlayerData () | |
void | SetState (LfgState state) |
void | RestoreState () |
void | SetLockedDungeons (LfgLockMap const &lock) |
void | SetTeam (TeamId teamId) |
void | SetGroup (ObjectGuid group) |
void | SetRandomPlayersCount (uint8 count) |
void | SetRoles (uint8 roles) |
void | SetComment (std::string const &comment) |
void | SetSelectedDungeons (const LfgDungeonSet &dungeons) |
LfgState | GetState () const |
LfgState | GetOldState () const |
LfgLockMap const & | GetLockedDungeons () const |
TeamId | GetTeam () const |
ObjectGuid | GetGroup () const |
uint8 | GetRandomPlayersCount () const |
void | SetCanOverrideRBState (bool val) |
bool | CanOverrideRBState () const |
uint8 | GetRoles () const |
std::string const & | GetComment () const |
LfgDungeonSet const & | GetSelectedDungeons () const |
Private Attributes | |
LfgState | m_State |
State if group in LFG. More... | |
LfgState | m_OldState |
Old State - Used to restore state after failed Rolecheck/Proposal. More... | |
bool | m_canOverrideRBState |
pussywizard More... | |
LfgLockMap | m_LockedDungeons |
Dungeons player can't do and reason. More... | |
TeamId | m_TeamId |
Player team - determines the queue to join. More... | |
ObjectGuid | m_Group |
Original group of player when joined LFG. More... | |
uint8 | m_randomPlayers |
Xinef: Amount of random players you raid with. More... | |
uint8 | m_Roles |
Roles the player selected when joined LFG. More... | |
std::string | m_Comment |
Player comment used when joined LFG. More... | |
LfgDungeonSet | m_SelectedDungeons |
Selected Dungeons when joined LFG. More... | |
Stores all lfg data needed about the player.
lfg::LfgPlayerData::LfgPlayerData | ( | ) |
lfg::LfgPlayerData::~LfgPlayerData | ( | ) |
|
inline |
std::string const & lfg::LfgPlayerData::GetComment | ( | ) | const |
ObjectGuid lfg::LfgPlayerData::GetGroup | ( | ) | const |
References m_Group.
const LfgLockMap & lfg::LfgPlayerData::GetLockedDungeons | ( | ) | const |
References m_LockedDungeons.
LfgState lfg::LfgPlayerData::GetOldState | ( | ) | const |
uint8 lfg::LfgPlayerData::GetRandomPlayersCount | ( | ) | const |
References m_randomPlayers.
LfgDungeonSet const & lfg::LfgPlayerData::GetSelectedDungeons | ( | ) | const |
References m_SelectedDungeons.
Referenced by lfg::LFGMgr::GetLfgStatus().
LfgState lfg::LfgPlayerData::GetState | ( | ) | const |
References m_State.
Referenced by lfg::LFGMgr::GetLfgStatus(), and lfg::LFGMgr::SetState().
void lfg::LfgPlayerData::RestoreState | ( | ) |
References CanOverrideRBState(), lfg::LFG_STATE_NONE, lfg::LFG_STATE_RAIDBROWSER, m_OldState, m_Roles, m_SelectedDungeons, and m_State.
Referenced by lfg::LFGMgr::RestoreState().
|
inline |
References m_canOverrideRBState.
void lfg::LfgPlayerData::SetComment | ( | std::string const & | comment | ) |
void lfg::LfgPlayerData::SetGroup | ( | ObjectGuid | group | ) |
void lfg::LfgPlayerData::SetLockedDungeons | ( | LfgLockMap const & | lock | ) |
References m_LockedDungeons.
void lfg::LfgPlayerData::SetRandomPlayersCount | ( | uint8 | count | ) |
References m_randomPlayers.
void lfg::LfgPlayerData::SetSelectedDungeons | ( | const LfgDungeonSet & | dungeons | ) |
References m_SelectedDungeons.
void lfg::LfgPlayerData::SetState | ( | LfgState | state | ) |
References CanOverrideRBState(), lfg::LFG_STATE_DUNGEON, lfg::LFG_STATE_FINISHED_DUNGEON, lfg::LFG_STATE_NONE, lfg::LFG_STATE_RAIDBROWSER, m_Comment, m_OldState, m_Roles, m_SelectedDungeons, and m_State.
Referenced by lfg::LFGMgr::SetState().
void lfg::LfgPlayerData::SetTeam | ( | TeamId | teamId | ) |
|
private |
pussywizard
Referenced by CanOverrideRBState(), and SetCanOverrideRBState().
|
private |
Player comment used when joined LFG.
Referenced by GetComment(), SetComment(), and SetState().
|
private |
Original group of player when joined LFG.
Referenced by GetGroup(), and SetGroup().
|
private |
Dungeons player can't do and reason.
Referenced by GetLockedDungeons(), and SetLockedDungeons().
|
private |
Old State - Used to restore state after failed Rolecheck/Proposal.
Referenced by GetOldState(), RestoreState(), and SetState().
|
private |
Xinef: Amount of random players you raid with.
Referenced by GetRandomPlayersCount(), and SetRandomPlayersCount().
|
private |
Roles the player selected when joined LFG.
Referenced by GetRoles(), RestoreState(), SetRoles(), and SetState().
|
private |
Selected Dungeons when joined LFG.
Referenced by GetSelectedDungeons(), RestoreState(), SetSelectedDungeons(), and SetState().
|
private |
State if group in LFG.
Referenced by GetState(), RestoreState(), and SetState().