TrinityCore
Loading...
Searching...
No Matches
LFGPlayerData.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
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
23namespace lfg
24{
25
30{
31 public:
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(LfgDungeonSet const& 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 // Achievement-related
58 void SetNumberOfPartyMembersAtJoin(uint8 count);
59 uint8 GetNumberOfPartyMembersAtJoin();
60
61 private:
62 // General
65 // Player
68
69 // Queue
71 std::string m_Comment;
73
74 // Achievement-related
76};
77
78} // namespace lfg
79
80#endif
#define TC_GAME_API
Definition Define.h:114
uint8_t uint8
Definition Define.h:135
uint8 m_Team
Player team - determines the queue to join.
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
uint8 m_Roles
Roles the player selected when joined LFG.
ObjectGuid m_Group
Original group of player when joined LFG.
LfgState m_State
State if group in LFG.
uint8 m_NumberOfPartyMembersAtJoin
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
std::string m_Comment
Player comment used when joined LFG.
Definition LFG.cpp:24
LfgState
Definition LFG.h:66
std::set< uint32 > LfgDungeonSet
Definition LFG.h:102