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#include "LFGPacketsCommon.h"
23
24namespace lfg
25{
26
31{
32 public:
34 LfgPlayerData(LfgPlayerData const&) = delete;
35 LfgPlayerData(LfgPlayerData&& other) noexcept;
39
40 // General
41 void SetTicket(WorldPackets::LFG::RideTicket const& ticket);
42 void SetState(LfgState state);
43 void RestoreState();
44 void SetTeam(uint8 team);
45 void SetGroup(ObjectGuid group);
46
47 // Queue
48 void SetRoles(uint8 roles);
49 void SetSelectedDungeons(LfgDungeonSet const& dungeons);
50
51 // General
52 WorldPackets::LFG::RideTicket const& GetTicket() const;
53 LfgState GetState() const;
54 LfgState GetOldState() const;
55 uint8 GetTeam() const;
56 ObjectGuid GetGroup() const;
57
58 // Queue
59 uint8 GetRoles() const;
60 LfgDungeonSet const& GetSelectedDungeons() const;
61
62 // Achievement-related
63 void SetNumberOfPartyMembersAtJoin(uint8 count);
64 uint8 GetNumberOfPartyMembersAtJoin();
65
66 private:
67 // General
71 // Player
74
75 // Queue
78
79 // Achievement-related
81};
82
83} // namespace lfg
84
85#endif
#define TC_GAME_API
Definition Define.h:129
uint8_t uint8
Definition Define.h:156
uint8 m_Team
Player team - determines the queue to join.
LfgPlayerData & operator=(LfgPlayerData &&right) noexcept
LfgState m_OldState
Old State - Used to restore state after failed Rolecheck/Proposal.
LfgPlayerData & operator=(LfgPlayerData const &)=delete
uint8 m_Roles
Roles the player selected when joined LFG.
LfgPlayerData(LfgPlayerData const &)=delete
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.
LfgPlayerData(LfgPlayerData &&other) noexcept
WorldPackets::LFG::RideTicket m_Ticket
Join ticket.
Definition LFG.cpp:24
std::set< uint32 > LfgDungeonSet
Definition LFG.h:132
LfgState
Definition LFG.h:74