TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GameObjectPackets.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 GOPackets_h__
19 #define GOPackets_h__
20 
21 #include "Packet.h"
22 #include "DB2Stores.h"
23 #include "GameObject.h"
24 #include "WorldSession.h"
25 
26 namespace WorldPackets
27 {
28  namespace GameObject
29  {
30  class GameObjUse final : public ClientPacket
31  {
32  public:
33  GameObjUse(WorldPacket&& packet) : ClientPacket(CMSG_GAME_OBJ_USE, std::move(packet)) { }
34 
35  void Read() override;
36 
38  };
39 
40  class GameObjReportUse final : public ClientPacket
41  {
42  public:
44 
45  void Read() override;
46 
48  };
49 
50  class GameObjectDespawn final : public ServerPacket
51  {
52  public:
54 
55  WorldPacket const* Write() override;
56 
58  };
59 
60  class PageText final : public ServerPacket
61  {
62  public:
64 
65  WorldPacket const* Write() override;
66 
68  };
69 
71  {
72  public:
74 
75  WorldPacket const* Write() override;
76 
79  bool Maintain = false;
80  };
81 
83  {
84  public:
86 
87  WorldPacket const* Write() override;
88 
94  };
95 
96  class FishNotHooked final : public ServerPacket
97  {
98  public:
100 
101  WorldPacket const* Write() override { return &_worldPacket; }
102  };
103 
104  class FishEscaped final : public ServerPacket
105  {
106  public:
108 
109  WorldPacket const* Write() override { return &_worldPacket; }
110  };
111 
112  class GameObjectCustomAnim final : public ServerPacket
113  {
114  public:
116 
117  WorldPacket const* Write() override;
118 
121  bool PlayAsDespawn = false;
122  };
123  }
124 }
125 #endif // GOPackets_h__
void Read() override
Definition: GameObjectPackets.cpp:25
FishNotHooked()
Definition: GameObjectPackets.h:99
Definition: Opcodes.h:949
Definition: GameObjectPackets.h:96
GameObjReportUse(WorldPacket &&packet)
Definition: GameObjectPackets.h:43
FishEscaped()
Definition: GameObjectPackets.h:107
Definition: Opcodes.h:991
Definition: GameObjectPackets.h:112
ObjectGuid ObjectGUID
Definition: GameObjectPackets.h:77
ObjectGuid Guid
Definition: GameObjectPackets.h:47
Definition: GameObjectPackets.h:50
Definition: GameObjectPackets.h:40
Definition: GameObjectPackets.h:104
WorldPacket const * Write() override
Definition: GameObjectPackets.cpp:36
WorldPacket const * Write() override
Definition: GameObjectPackets.h:101
STL namespace.
ObjectGuid Guid
Definition: GameObjectPackets.h:37
Definition: GameObjectPackets.h:60
Definition: Opcodes.h:1320
WorldPacket const * Write() override
Definition: GameObjectPackets.cpp:30
GameObjectCustomAnim()
Definition: GameObjectPackets.h:115
GameObjectDespawn()
Definition: GameObjectPackets.h:53
WorldPacket _worldPacket
Definition: Packet.h:43
PageText()
Definition: GameObjectPackets.h:63
ObjectGuid Caster
Definition: GameObjectPackets.h:90
WorldPacket const * Write() override
Definition: GameObjectPackets.cpp:63
Definition: Packet.h:59
GameObjectActivateAnimKit()
Definition: GameObjectPackets.h:73
ObjectGuid GameObjectGUID
Definition: GameObjectPackets.h:67
int32 AnimKitID
Definition: GameObjectPackets.h:78
Definition: GameObjectPackets.h:70
Definition: Packet.h:46
ObjectGuid ObjectGUID
Definition: GameObjectPackets.h:57
ObjectGuid ObjectGUID
Definition: GameObjectPackets.h:119
int32 SpellID
Definition: GameObjectPackets.h:93
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Definition: GameObject.h:880
int32 Damage
Definition: GameObjectPackets.h:92
WorldPacket const * Write() override
Definition: GameObjectPackets.h:109
GameObjUse(WorldPacket &&packet)
Definition: GameObjectPackets.h:33
Definition: BattlegroundMgr.h:57
Definition: Opcodes.h:266
bool Maintain
Definition: GameObjectPackets.h:79
Definition: Opcodes.h:992
ObjectGuid Target
Definition: GameObjectPackets.h:89
void Read() override
Definition: GameObjectPackets.cpp:20
DestructibleBuildingDamage()
Definition: GameObjectPackets.h:85
Definition: Opcodes.h:267
Definition: Opcodes.h:985
Definition: Opcodes.h:984
WorldPacket const * Write() override
Definition: GameObjectPackets.cpp:52
WorldPacket const * Write() override
Definition: GameObjectPackets.cpp:42
Definition: ObjectGuid.h:189
uint32 CustomAnim
Definition: GameObjectPackets.h:120
bool PlayAsDespawn
Definition: GameObjectPackets.h:121
Definition: WorldPacket.h:26
Definition: GameObjectPackets.h:30
ObjectGuid Owner
Definition: GameObjectPackets.h:91
Definition: Opcodes.h:993