TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
VehiclePackets.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 VehiclePackets_h__
19 #define VehiclePackets_h__
20 
21 #include "Packet.h"
22 #include "MovementPackets.h"
23 
24 namespace WorldPackets
25 {
26  namespace Vehicle
27  {
28  class MoveSetVehicleRecID final : public ServerPacket
29  {
30  public:
32 
33  WorldPacket const* Write() override;
34 
38  };
39 
40  class MoveSetVehicleRecIdAck final : public ClientPacket
41  {
42  public:
44 
45  void Read() override;
46 
49  };
50 
51  class SetVehicleRecID final : public ServerPacket
52  {
53  public:
55 
56  WorldPacket const* Write() override;
57 
60  };
61 
63  {
64  public:
66 
67  WorldPacket const* Write() override { return &_worldPacket; }
68  };
69 
70  class MoveDismissVehicle final : public ClientPacket
71  {
72  public:
74 
75  void Read() override;
76 
78  };
79 
80  class RequestVehiclePrevSeat final : public ClientPacket
81  {
82  public:
84 
85  void Read() override { }
86  };
87 
88  class RequestVehicleNextSeat final : public ClientPacket
89  {
90  public:
92 
93  void Read() override { }
94  };
95 
96  class MoveChangeVehicleSeats final : public ClientPacket
97  {
98  public:
100 
101  void Read() override;
102 
106  };
107 
109  {
110  public:
112 
113  void Read() override;
114 
117  };
118 
119  class RideVehicleInteract final : public ClientPacket
120  {
121  public:
123 
124  void Read() override;
125 
127  };
128 
129  class EjectPassenger final : public ClientPacket
130  {
131  public:
133 
134  void Read() override;
135 
137  };
138 
139  class RequestVehicleExit final : public ClientPacket
140  {
141  public:
143 
144  void Read() override { }
145  };
146  }
147 }
148 
149 #endif // VehiclePackets_h__
Definition: Opcodes.h:579
void Read() override
Definition: VehiclePackets.h:93
SetVehicleRecID()
Definition: VehiclePackets.h:54
Definition: Opcodes.h:415
Definition: VehiclePackets.h:96
Definition: Vehicle.h:32
Definition: Opcodes.h:1253
ObjectGuid DstVehicle
Definition: VehiclePackets.h:103
ObjectGuid MoverGUID
Definition: VehiclePackets.h:35
Definition: Opcodes.h:1518
ObjectGuid Vehicle
Definition: VehiclePackets.h:126
void Read() override
Definition: VehiclePackets.cpp:43
WorldPacket const * Write() override
Definition: VehiclePackets.cpp:35
uint8 SeatIndex
Definition: VehiclePackets.h:116
RequestVehicleNextSeat(WorldPacket &&packet)
Definition: VehiclePackets.h:91
STL namespace.
void Read() override
Definition: VehiclePackets.cpp:66
Definition: Opcodes.h:448
Definition: VehiclePackets.h:70
RequestVehicleSwitchSeat(WorldPacket &&packet)
Definition: VehiclePackets.h:111
WorldPackets::Movement::MovementAck Data
Definition: VehiclePackets.h:47
WorldPacket _worldPacket
Definition: Packet.h:43
Definition: VehiclePackets.h:51
int32 VehicleRecID
Definition: VehiclePackets.h:48
Definition: VehiclePackets.h:40
MoveChangeVehicleSeats(WorldPacket &&packet)
Definition: VehiclePackets.h:99
ObjectGuid VehicleGUID
Definition: VehiclePackets.h:58
Definition: VehiclePackets.h:108
Definition: Opcodes.h:258
MoveSetVehicleRecID()
Definition: VehiclePackets.h:31
void Read() override
Definition: VehiclePackets.cpp:29
Definition: Packet.h:59
Definition: Object.h:267
Definition: VehiclePackets.h:88
Definition: Opcodes.h:587
MoveDismissVehicle(WorldPacket &&packet)
Definition: VehiclePackets.h:73
Definition: Packet.h:46
RideVehicleInteract(WorldPacket &&packet)
Definition: VehiclePackets.h:122
WorldPacket const * Write() override
Definition: VehiclePackets.cpp:20
ObjectGuid Vehicle
Definition: VehiclePackets.h:115
int32_t int32
Definition: Define.h:146
void Read() override
Definition: VehiclePackets.cpp:48
uint32_t uint32
Definition: Define.h:150
Definition: MovementPackets.h:290
int32 VehicleRecID
Definition: VehiclePackets.h:59
RequestVehicleExit(WorldPacket &&packet)
Definition: VehiclePackets.h:142
Definition: VehiclePackets.h:119
void Read() override
Definition: VehiclePackets.h:144
Definition: BattlegroundMgr.h:57
WorldPacket const * Write() override
Definition: VehiclePackets.h:67
MovementInfo Status
Definition: VehiclePackets.h:104
Definition: Opcodes.h:578
ObjectGuid Passenger
Definition: VehiclePackets.h:136
EjectPassenger(WorldPacket &&packet)
Definition: VehiclePackets.h:132
void Read() override
Definition: VehiclePackets.h:85
Definition: VehiclePackets.h:129
uint8_t uint8
Definition: Define.h:152
MoveSetVehicleRecIdAck(WorldPacket &&packet)
Definition: VehiclePackets.h:43
uint32 SequenceIndex
Definition: VehiclePackets.h:36
void Read() override
Definition: VehiclePackets.cpp:61
OnCancelExpectedRideVehicleAura()
Definition: VehiclePackets.h:65
MovementInfo Status
Definition: VehiclePackets.h:77
Definition: Opcodes.h:580
Definition: ObjectGuid.h:189
Definition: VehiclePackets.h:28
uint8 DstSeatIndex
Definition: VehiclePackets.h:105
Definition: VehiclePackets.h:80
void Read() override
Definition: VehiclePackets.cpp:55
Definition: Opcodes.h:413
Definition: Opcodes.h:581
Definition: WorldPacket.h:26
int32 VehicleRecID
Definition: VehiclePackets.h:37
Definition: VehiclePackets.h:139
RequestVehiclePrevSeat(WorldPacket &&packet)
Definition: VehiclePackets.h:83