AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
lfg::LfgPlayerData Class Reference

#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...
 

Detailed Description

Stores all lfg data needed about the player.

Constructor & Destructor Documentation

◆ LfgPlayerData()

lfg::LfgPlayerData::LfgPlayerData ( )
25 {}
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
@ LFG_STATE_NONE
Definition: LFG.h:71
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
Definition: LFGPlayerData.h:67
uint8 m_Roles
Roles the player selected when joined LFG.
Definition: LFGPlayerData.h:76
LfgState m_State
State if group in LFG.
Definition: LFGPlayerData.h:66
std::string m_Comment
Player comment used when joined LFG.
Definition: LFGPlayerData.h:77
TeamId m_TeamId
Player team - determines the queue to join.
Definition: LFGPlayerData.h:71
bool m_canOverrideRBState
pussywizard
Definition: LFGPlayerData.h:68

◆ ~LfgPlayerData()

lfg::LfgPlayerData::~LfgPlayerData ( )
28 {
29 }

Member Function Documentation

◆ CanOverrideRBState()

bool lfg::LfgPlayerData::CanOverrideRBState ( ) const
inline
57{ return m_canOverrideRBState; }

References m_canOverrideRBState.

Referenced by RestoreState(), and SetState().

◆ GetComment()

std::string const & lfg::LfgPlayerData::GetComment ( ) const
136 {
137 return m_Comment;
138 }

References m_Comment.

◆ GetGroup()

ObjectGuid lfg::LfgPlayerData::GetGroup ( ) const
126 {
127 return m_Group;
128 }
ObjectGuid m_Group
Original group of player when joined LFG.
Definition: LFGPlayerData.h:72

References m_Group.

◆ GetLockedDungeons()

const LfgLockMap & lfg::LfgPlayerData::GetLockedDungeons ( ) const
116 {
117 return m_LockedDungeons;
118 }
LfgLockMap m_LockedDungeons
Dungeons player can't do and reason.
Definition: LFGPlayerData.h:70

References m_LockedDungeons.

◆ GetOldState()

LfgState lfg::LfgPlayerData::GetOldState ( ) const
111 {
112 return m_OldState;
113 }

References m_OldState.

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

◆ GetRandomPlayersCount()

uint8 lfg::LfgPlayerData::GetRandomPlayersCount ( ) const
101 {
102 return m_randomPlayers;
103 }
uint8 m_randomPlayers
Xinef: Amount of random players you raid with.
Definition: LFGPlayerData.h:73

References m_randomPlayers.

◆ GetRoles()

uint8 lfg::LfgPlayerData::GetRoles ( ) const
131 {
132 return m_Roles;
133 }

References m_Roles.

◆ GetSelectedDungeons()

LfgDungeonSet const & lfg::LfgPlayerData::GetSelectedDungeons ( ) const
141 {
142 return m_SelectedDungeons;
143 }
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
Definition: LFGPlayerData.h:78

References m_SelectedDungeons.

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

◆ GetState()

LfgState lfg::LfgPlayerData::GetState ( ) const
106 {
107 return m_State;
108 }

References m_State.

Referenced by lfg::LFGMgr::GetLfgStatus(), and lfg::LFGMgr::SetState().

◆ GetTeam()

TeamId lfg::LfgPlayerData::GetTeam ( ) const
121 {
122 return m_TeamId;
123 }

References m_TeamId.

◆ RestoreState()

void lfg::LfgPlayerData::RestoreState ( )
53 {
55 return;
56
58 {
59 m_SelectedDungeons.clear();
60 m_Roles = 0;
61 }
63 }
@ LFG_STATE_RAIDBROWSER
Definition: LFG.h:78
bool CanOverrideRBState() const
Definition: LFGPlayerData.h:57

References CanOverrideRBState(), lfg::LFG_STATE_NONE, lfg::LFG_STATE_RAIDBROWSER, m_OldState, m_Roles, m_SelectedDungeons, and m_State.

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

◆ SetCanOverrideRBState()

void lfg::LfgPlayerData::SetCanOverrideRBState ( bool  val)
inline
56{ m_canOverrideRBState = val; }

References m_canOverrideRBState.

◆ SetComment()

void lfg::LfgPlayerData::SetComment ( std::string const &  comment)
86 {
87 m_Comment = comment;
88 }

References m_Comment.

◆ SetGroup()

void lfg::LfgPlayerData::SetGroup ( ObjectGuid  group)
76 {
77 m_Group = group;
78 }

References m_Group.

◆ SetLockedDungeons()

void lfg::LfgPlayerData::SetLockedDungeons ( LfgLockMap const &  lock)
66 {
67 m_LockedDungeons = lockStatus;
68 }

References m_LockedDungeons.

◆ SetRandomPlayersCount()

void lfg::LfgPlayerData::SetRandomPlayersCount ( uint8  count)
96 {
97 m_randomPlayers = count;
98 }

References m_randomPlayers.

◆ SetRoles()

void lfg::LfgPlayerData::SetRoles ( uint8  roles)
81 {
82 m_Roles = roles;
83 }

References m_Roles.

◆ SetSelectedDungeons()

void lfg::LfgPlayerData::SetSelectedDungeons ( const LfgDungeonSet dungeons)
91 {
92 m_SelectedDungeons = dungeons;
93 }

References m_SelectedDungeons.

◆ SetState()

void lfg::LfgPlayerData::SetState ( LfgState  state)
32 {
34 return;
35
36 switch (state)
37 {
38 case LFG_STATE_NONE:
40 m_Roles = 0;
41 m_SelectedDungeons.clear();
42 m_Comment = "";
43 [[fallthrough]];
45 m_OldState = state;
46 [[fallthrough]];
47 default:
48 m_State = state;
49 }
50 }
@ LFG_STATE_FINISHED_DUNGEON
Definition: LFG.h:77
@ LFG_STATE_DUNGEON
Definition: LFG.h:76

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().

◆ SetTeam()

void lfg::LfgPlayerData::SetTeam ( TeamId  teamId)
71 {
72 m_TeamId = teamId;
73 }

References m_TeamId.

Member Data Documentation

◆ m_canOverrideRBState

bool lfg::LfgPlayerData::m_canOverrideRBState
private

pussywizard

Referenced by CanOverrideRBState(), and SetCanOverrideRBState().

◆ m_Comment

std::string lfg::LfgPlayerData::m_Comment
private

Player comment used when joined LFG.

Referenced by GetComment(), SetComment(), and SetState().

◆ m_Group

ObjectGuid lfg::LfgPlayerData::m_Group
private

Original group of player when joined LFG.

Referenced by GetGroup(), and SetGroup().

◆ m_LockedDungeons

LfgLockMap lfg::LfgPlayerData::m_LockedDungeons
private

Dungeons player can't do and reason.

Referenced by GetLockedDungeons(), and SetLockedDungeons().

◆ m_OldState

LfgState lfg::LfgPlayerData::m_OldState
private

Old State - Used to restore state after failed Rolecheck/Proposal.

Referenced by GetOldState(), RestoreState(), and SetState().

◆ m_randomPlayers

uint8 lfg::LfgPlayerData::m_randomPlayers
private

Xinef: Amount of random players you raid with.

Referenced by GetRandomPlayersCount(), and SetRandomPlayersCount().

◆ m_Roles

uint8 lfg::LfgPlayerData::m_Roles
private

Roles the player selected when joined LFG.

Referenced by GetRoles(), RestoreState(), SetRoles(), and SetState().

◆ m_SelectedDungeons

LfgDungeonSet lfg::LfgPlayerData::m_SelectedDungeons
private

Selected Dungeons when joined LFG.

Referenced by GetSelectedDungeons(), RestoreState(), SetSelectedDungeons(), and SetState().

◆ m_State

LfgState lfg::LfgPlayerData::m_State
private

State if group in LFG.

Referenced by GetState(), RestoreState(), and SetState().

◆ m_TeamId

TeamId lfg::LfgPlayerData::m_TeamId
private

Player team - determines the queue to join.

Referenced by GetTeam(), and SetTeam().