TrinityCore
Loading...
Searching...
No Matches
CombatPackets.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 CombatPackets_h__
19#define CombatPackets_h__
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23
24class Unit;
25
26namespace WorldPackets
27{
28 namespace Combat
29 {
31 {
32 public:
34
35 void Read() override;
36
38 };
39
41 {
42 public:
44
45 WorldPacket const* Write() override { return &_worldPacket; }
46 };
47
49 {
50 public:
52
53 WorldPacket const* Write() override { return &_worldPacket; }
54 };
55
57 {
58 public:
60
61 WorldPacket const* Write() override { return &_worldPacket; }
62 };
63
65 {
66 public:
68
69 WorldPacket const* Write() override { return &_worldPacket; }
70 };
71
73 {
74 public:
76
77 void Read() override { }
78 };
79
81 {
82 public:
84
85 WorldPacket const* Write() override;
86
89 };
90
92 {
93 public:
95 SAttackStop(Unit const* attacker, Unit const* victim);
96
97 WorldPacket const* Write() override;
98
101 bool NowDead = false;
102 };
103
105 {
106 public:
108
109 WorldPacket const* Write() override { return &_worldPacket; }
110 };
111
113 {
114 public:
116
117 WorldPacket const* Write() override;
118
120 };
121
123 {
124 public:
126
127 void Read() override;
128
130 };
131 }
132}
133
134#endif // CombatPackets_h__
uint32_t uint32
Definition Define.h:133
Definition Unit.h:769
WorldPacket const * Write() override
AttackStop(WorldPacket &&packet)
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
AttackSwing(WorldPacket &&packet)
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
SetSheathed(WorldPacket &&packet)
WorldPacket _worldPacket
Definition Packet.h:42
@ CMSG_ATTACK_STOP
Definition Opcodes.h:351
@ CMSG_SET_SHEATHED
Definition Opcodes.h:509
@ SMSG_ATTACK_SWING_CANT_ATTACK
Definition Opcodes.h:358
@ SMSG_CANCEL_COMBAT
Definition Opcodes.h:363
@ SMSG_ATTACK_STOP
Definition Opcodes.h:353
@ SMSG_ATTACK_SWING_DEAD_TARGET
Definition Opcodes.h:357
@ SMSG_ATTACK_SWING_NOT_IN_RANGE
Definition Opcodes.h:354
@ SMSG_CANCEL_AUTO_REPEAT
Definition Opcodes.h:697
@ SMSG_ATTACK_START
Definition Opcodes.h:352
@ CMSG_ATTACK_SWING
Definition Opcodes.h:350
@ SMSG_ATTACK_SWING_BAD_FACING
Definition Opcodes.h:355
STL namespace.