TrinityCore
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#include "LFGPacketsCommon.h"
23
24namespace lfg
25{
26
31{
32 public:
35
36 // General
37 void SetTicket(WorldPackets::LFG::RideTicket const& ticket);
38 void SetState(LfgState state);
39 void RestoreState();
40 void SetTeam(uint8 team);
41 void SetGroup(ObjectGuid group);
42
43 // Queue
44 void SetRoles(uint8 roles);
45 void SetSelectedDungeons(LfgDungeonSet const& dungeons);
46
47 // General
48 WorldPackets::LFG::RideTicket const& GetTicket() const;
49 LfgState GetState() const;
50 LfgState GetOldState() const;
51 uint8 GetTeam() const;
52 ObjectGuid GetGroup() const;
53
54 // Queue
55 uint8 GetRoles() const;
56 LfgDungeonSet const& GetSelectedDungeons() const;
57
58 // Achievement-related
59 void SetNumberOfPartyMembersAtJoin(uint8 count);
60 uint8 GetNumberOfPartyMembersAtJoin();
61
62 private:
63 // General
67 // Player
70
71 // Queue
74
75 // Achievement-related
77};
78
79} // namespace lfg
80
81#endif
#define TC_GAME_API
Definition: Define.h:123
uint8_t uint8
Definition: Define.h:144
uint8 m_Team
Player team - determines the queue to join.
Definition: LFGPlayerData.h:68
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
Definition: LFGPlayerData.h:66
uint8 m_Roles
Roles the player selected when joined LFG.
Definition: LFGPlayerData.h:72
ObjectGuid m_Group
Original group of player when joined LFG.
Definition: LFGPlayerData.h:69
LfgState m_State
State if group in LFG.
Definition: LFGPlayerData.h:65
uint8 m_NumberOfPartyMembersAtJoin
Definition: LFGPlayerData.h:76
LfgDungeonSet m_SelectedDungeons
Selected Dungeons when joined LFG.
Definition: LFGPlayerData.h:73
WorldPackets::LFG::RideTicket m_Ticket
Join ticket.
Definition: LFGPlayerData.h:64
Definition: LFG.cpp:24
std::set< uint32 > LfgDungeonSet
Definition: LFG.h:132
LfgState
Definition: LFG.h:74