TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lfg::LfgPlayerData Class Reference

#include <LFGPlayerData.h>

Public Member Functions

 LfgPlayerData ()
 
 ~LfgPlayerData ()
 
void SetState (LfgState state)
 
void RestoreState ()
 
void SetTeam (uint8 team)
 
void SetGroup (ObjectGuid group)
 
void SetRoles (uint8 roles)
 
void SetComment (std::string const &comment)
 
void SetSelectedDungeons (const LfgDungeonSet &dungeons)
 
LfgState GetState () const
 
LfgState GetOldState () const
 
uint8 GetTeam () const
 
ObjectGuid GetGroup () const
 
uint8 GetRoles () const
 
std::string constGetComment () const
 
LfgDungeonSet constGetSelectedDungeons () 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...
 
uint8 m_Team
 Player team - determines the queue to join. More...
 
ObjectGuid m_Group
 Original group of player when joined LFG. 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

lfg::LfgPlayerData::LfgPlayerData ( )
24  m_Team(0), m_Group(), m_Roles(0), m_Comment("")
25 { }
LfgState m_State
State if group in LFG.
Definition: LFGPlayerData.h:59
Definition: LFG.h:67
ObjectGuid m_Group
Original group of player when joined LFG.
Definition: LFGPlayerData.h:63
uint8 m_Team
Player team - determines the queue to join.
Definition: LFGPlayerData.h:62
uint8 m_Roles
Roles the player selected when joined LFG.
Definition: LFGPlayerData.h:66
std::string m_Comment
Player comment used when joined LFG.
Definition: LFGPlayerData.h:67
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
Definition: LFGPlayerData.h:60
lfg::LfgPlayerData::~LfgPlayerData ( )
27 { }

Member Function Documentation

std::string const & lfg::LfgPlayerData::GetComment ( ) const
108 {
109  return m_Comment;
110 }
std::string m_Comment
Player comment used when joined LFG.
Definition: LFGPlayerData.h:67
ObjectGuid lfg::LfgPlayerData::GetGroup ( ) const
98 {
99  return m_Group;
100 }
ObjectGuid m_Group
Original group of player when joined LFG.
Definition: LFGPlayerData.h:63
LfgState lfg::LfgPlayerData::GetOldState ( ) const
88 {
89  return m_OldState;
90 }
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
Definition: LFGPlayerData.h:60

+ Here is the caller graph for this function:

uint8 lfg::LfgPlayerData::GetRoles ( ) const
103 {
104  return m_Roles;
105 }
uint8 m_Roles
Roles the player selected when joined LFG.
Definition: LFGPlayerData.h:66
LfgDungeonSet const & lfg::LfgPlayerData::GetSelectedDungeons ( ) const
113 {
114  return m_SelectedDungeons;
115 }
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
Definition: LFGPlayerData.h:68

+ Here is the caller graph for this function:

LfgState lfg::LfgPlayerData::GetState ( ) const
83 {
84  return m_State;
85 }
LfgState m_State
State if group in LFG.
Definition: LFGPlayerData.h:59

+ Here is the caller graph for this function:

uint8 lfg::LfgPlayerData::GetTeam ( ) const
93 {
94  return m_Team;
95 }
uint8 m_Team
Player team - determines the queue to join.
Definition: LFGPlayerData.h:62
void lfg::LfgPlayerData::RestoreState ( )
48 {
50  {
51  m_SelectedDungeons.clear();
52  m_Roles = 0;
53  }
55 }
LfgState m_State
State if group in LFG.
Definition: LFGPlayerData.h:59
Definition: LFG.h:67
uint8 m_Roles
Roles the player selected when joined LFG.
Definition: LFGPlayerData.h:66
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
Definition: LFGPlayerData.h:68
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
Definition: LFGPlayerData.h:60

+ Here is the caller graph for this function:

void lfg::LfgPlayerData::SetComment ( std::string const comment)
73 {
74  m_Comment = comment;
75 }
std::string m_Comment
Player comment used when joined LFG.
Definition: LFGPlayerData.h:67
void lfg::LfgPlayerData::SetGroup ( ObjectGuid  group)
63 {
64  m_Group = group;
65 }
ObjectGuid m_Group
Original group of player when joined LFG.
Definition: LFGPlayerData.h:63
void lfg::LfgPlayerData::SetRoles ( uint8  roles)
68 {
69  m_Roles = roles;
70 }
uint8 m_Roles
Roles the player selected when joined LFG.
Definition: LFGPlayerData.h:66
void lfg::LfgPlayerData::SetSelectedDungeons ( const LfgDungeonSet dungeons)
78 {
79  m_SelectedDungeons = dungeons;
80 }
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
Definition: LFGPlayerData.h:68
void lfg::LfgPlayerData::SetState ( LfgState  state)
30 {
31  switch (state)
32  {
33  case LFG_STATE_NONE:
35  m_Roles = 0;
36  m_SelectedDungeons.clear();
37  m_Comment.clear();
38  // No break on purpose
39  case LFG_STATE_DUNGEON:
40  m_OldState = state;
41  // No break on purpose
42  default:
43  m_State = state;
44  }
45 }
LfgState m_State
State if group in LFG.
Definition: LFGPlayerData.h:59
Definition: LFG.h:67
Definition: LFG.h:72
uint8 m_Roles
Roles the player selected when joined LFG.
Definition: LFGPlayerData.h:66
std::string m_Comment
Player comment used when joined LFG.
Definition: LFGPlayerData.h:67
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
Definition: LFGPlayerData.h:68
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
Definition: LFGPlayerData.h:60

+ Here is the caller graph for this function:

void lfg::LfgPlayerData::SetTeam ( uint8  team)
58 {
59  m_Team = team;
60 }
uint8 m_Team
Player team - determines the queue to join.
Definition: LFGPlayerData.h:62

Member Data Documentation

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

Player comment used when joined LFG.

ObjectGuid lfg::LfgPlayerData::m_Group
private

Original group of player when joined LFG.

LfgState lfg::LfgPlayerData::m_OldState
private

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

uint8 lfg::LfgPlayerData::m_Roles
private

Roles the player selected when joined LFG.

LfgDungeonSet lfg::LfgPlayerData::m_SelectedDungeons
private

Selected Dungeons when joined LFG.

LfgState lfg::LfgPlayerData::m_State
private

State if group in LFG.

uint8 lfg::LfgPlayerData::m_Team
private

Player team - determines the queue to join.


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