TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BattlefieldPackets.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 BattlefieldPackets_h__
19 #define BattlefieldPackets_h__
20 
21 #include "Packet.h"
22 #include "ObjectGuid.h"
23 
24 namespace WorldPackets
25 {
26  namespace Battlefield
27  {
28  class BFMgrEntryInvite final : public ServerPacket
29  {
30  public:
32 
33  WorldPacket const* Write() override;
34 
37  time_t ExpireTime = time_t(0);
38  };
39 
41  {
42  public:
44 
45  void Read() override;
46 
48  bool AcceptedInvite = false;
49  };
50 
51  class BFMgrQueueInvite final : public ServerPacket
52  {
53  public:
54  BFMgrQueueInvite() : ServerPacket(SMSG_BF_MGR_QUEUE_INVITE, 8 + 4 + 4 + 4 + 4 + 4 + 1 + 1) { }
55 
56  WorldPacket const* Write() override;
57 
61  int32 MinLevel = 0; // unused in client
62  int32 MaxLevel = 0; // unused in client
63  int32 MapID = 0; // unused in client
64  uint32 InstanceID = 0; // unused in client
65  int8 Index = 0; // unused in client
66  };
67 
69  {
70  public:
72 
73  void Read() override;
74 
76  bool AcceptedInvite = false;
77  };
78 
80  {
81  public:
83 
84  WorldPacket const* Write() override;
85 
88  int8 Result = 0;
91  bool LoggingIn = false;
92  };
93 
94  class BFMgrQueueExitRequest final : public ClientPacket
95  {
96  public:
98 
99  void Read() override;
100 
102  };
103 
104  class BFMgrEntering final : public ServerPacket
105  {
106  public:
108 
109  WorldPacket const* Write() override;
110 
111  bool ClearedAFK = false;
112  bool Relocated = false;
113  bool OnOffense = false;
115  };
116 
117  class BFMgrEjected final : public ServerPacket
118  {
119  public:
121 
122  WorldPacket const* Write() override;
123 
127  bool Relocated = false;
128  };
129  }
130 }
131 
132 #endif // BattlefieldPackets_h__
BFMgrQueueInviteResponse(WorldPacket &&packet)
Definition: BattlefieldPackets.h:71
BFMgrQueueRequestResponse()
Definition: BattlefieldPackets.h:82
Definition: Opcodes.h:828
Definition: Opcodes.h:825
BFMgrEjected()
Definition: BattlefieldPackets.h:120
Definition: BattlefieldPackets.h:79
int8_t int8
Definition: Define.h:148
Definition: Opcodes.h:827
Definition: Opcodes.h:826
BFMgrEntering()
Definition: BattlefieldPackets.h:107
uint64 QueueID
Definition: BattlefieldPackets.h:58
Definition: BattlefieldPackets.h:28
WorldPacket const * Write() override
Definition: BattlefieldPackets.cpp:20
int32 MapID
Definition: BattlefieldPackets.h:63
bool Relocated
Definition: BattlefieldPackets.h:112
uint32 Timeout
Definition: BattlefieldPackets.h:60
uint64 QueueID
Definition: BattlefieldPackets.h:114
Definition: BattlefieldPackets.h:68
int32 MinLevel
Definition: BattlefieldPackets.h:61
STL namespace.
bool LoggingIn
Definition: BattlefieldPackets.h:91
void Read() override
Definition: BattlefieldPackets.cpp:48
int32 MaxLevel
Definition: BattlefieldPackets.h:62
Definition: BattlefieldPackets.h:117
uint32 InstanceID
Definition: BattlefieldPackets.h:64
bool ClearedAFK
Definition: BattlefieldPackets.h:111
uint64 QueueID
Definition: BattlefieldPackets.h:86
T max(const T &x, const T &y)
Definition: g3dmath.h:320
bool Relocated
Definition: BattlefieldPackets.h:127
WorldPacket const * Write() override
Definition: BattlefieldPackets.cpp:71
bool AcceptedInvite
Definition: BattlefieldPackets.h:48
Definition: BattlefieldPackets.h:104
Definition: Packet.h:59
bool OnOffense
Definition: BattlefieldPackets.h:113
BFMgrEntryInvite()
Definition: BattlefieldPackets.h:31
Definition: Opcodes.h:112
BFMgrQueueExitRequest(WorldPacket &&packet)
Definition: BattlefieldPackets.h:97
time_t ExpireTime
Definition: BattlefieldPackets.h:37
int32 AreaID
Definition: BattlefieldPackets.h:87
Definition: Packet.h:46
Definition: BattlefieldPackets.h:40
int8 BattleState
Definition: BattlefieldPackets.h:59
Definition: Opcodes.h:823
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
Definition: Battlefield.h:196
uint64 QueueID
Definition: BattlefieldPackets.h:47
uint64 QueueID
Definition: BattlefieldPackets.h:124
Definition: BattlegroundMgr.h:57
int8 BattleState
Definition: BattlefieldPackets.h:90
ObjectGuid FailedPlayerGUID
Definition: BattlefieldPackets.h:89
Definition: BattlefieldPackets.h:51
void Read() override
Definition: BattlefieldPackets.cpp:66
Definition: Opcodes.h:111
WorldPacket const * Write() override
Definition: BattlefieldPackets.cpp:34
int8 Result
Definition: BattlefieldPackets.h:88
uint64 QueueID
Definition: BattlefieldPackets.h:75
void Read() override
Definition: BattlefieldPackets.cpp:28
int8 BattleState
Definition: BattlefieldPackets.h:126
Definition: Opcodes.h:110
Definition: ObjectGuid.h:189
WorldPacket const * Write() override
Definition: BattlefieldPackets.cpp:80
BFMgrQueueInvite()
Definition: BattlefieldPackets.h:54
BFMgrEntryInviteResponse(WorldPacket &&packet)
Definition: BattlefieldPackets.h:43
int8 Reason
Definition: BattlefieldPackets.h:125
bool AcceptedInvite
Definition: BattlefieldPackets.h:76
int32 AreaID
Definition: BattlefieldPackets.h:36
uint64 QueueID
Definition: BattlefieldPackets.h:101
int8 Index
Definition: BattlefieldPackets.h:65
Definition: WorldPacket.h:26
Definition: BattlefieldPackets.h:94
uint64 QueueID
Definition: BattlefieldPackets.h:35
WorldPacket const * Write() override
Definition: BattlefieldPackets.cpp:54