TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LFGPlayerData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef _LFGPLAYERDATA_H
19 #define _LFGPLAYERDATA_H
20 
21 #include "LFG.h"
22 
23 namespace lfg
24 {
25 
30 {
31  public:
32  LfgPlayerData();
33  ~LfgPlayerData();
34 
35  // General
36  void SetState(LfgState state);
37  void RestoreState();
38  void SetTeam(uint8 team);
39  void SetGroup(ObjectGuid group);
40 
41  // Queue
42  void SetRoles(uint8 roles);
43  void SetComment(std::string const& comment);
44  void SetSelectedDungeons(const LfgDungeonSet& dungeons);
45 
46  // General
47  LfgState GetState() const;
48  LfgState GetOldState() const;
49  uint8 GetTeam() const;
50  ObjectGuid GetGroup() const;
51 
52  // Queue
53  uint8 GetRoles() const;
54  std::string const& GetComment() const;
55  LfgDungeonSet const& GetSelectedDungeons() const;
56 
57  private:
58  // General
61  // Player
64 
65  // Queue
67  std::string m_Comment;
69 };
70 
71 } // namespace lfg
72 
73 #endif
LfgState m_State
State if group in LFG.
Definition: LFGPlayerData.h:59
ObjectGuid m_Group
Original group of player when joined LFG.
Definition: LFGPlayerData.h:63
LfgState
Definition: LFG.h:65
Definition: LFG.cpp:22
uint8 m_Team
Player team - determines the queue to join.
Definition: LFGPlayerData.h:62
std::set< uint32 > LfgDungeonSet
Definition: LFG.h:112
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
#define TC_GAME_API
Definition: Define.h:134
uint8_t uint8
Definition: Define.h:152
Definition: ObjectGuid.h:189
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
Definition: LFGPlayerData.h:68
Definition: LFGPlayerData.h:29
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
Definition: LFGPlayerData.h:60