TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TaxiPackets.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 TaxiPackets_h__
19 #define TaxiPackets_h__
20 
21 #include "Packet.h"
22 #include "ObjectGuid.h"
23 #include "DB2Structure.h"
24 
25 namespace WorldPackets
26 {
27  namespace Taxi
28  {
29  class TaxiNodeStatusQuery final : public ClientPacket
30  {
31  public:
33 
34  void Read() override;
35 
37  };
38 
39  class TaxiNodeStatus final : public ServerPacket
40  {
41  public:
43 
44  WorldPacket const* Write() override;
45 
46  uint8 Status = 0; // replace with TaxiStatus enum
48  };
49 
51  {
54  };
55 
56  class ShowTaxiNodes final : public ServerPacket
57  {
58  public:
60 
61  WorldPacket const* Write() override;
62 
64  TaxiMask const* Nodes = nullptr;
65  };
66 
67  class EnableTaxiNode final : public ClientPacket
68  {
69  public:
71 
72  void Read() override;
73 
75  };
76 
78  {
79  public:
81 
82  void Read() override;
83 
85  };
86 
87  class ActivateTaxi final : public ClientPacket
88  {
89  public:
91 
92  void Read() override;
93 
95  uint32 Node = 0;
96  };
97 
98  class NewTaxiPath final : public ServerPacket
99  {
100  public:
102 
103  WorldPacket const* Write() override { return &_worldPacket; }
104  };
105 
106  class ActivateTaxiReply final : public ServerPacket
107  {
108  public:
110 
111  WorldPacket const* Write() override;
112 
114  };
115 
117  {
118  public:
120 
121  void Read() override { }
122  };
123  }
124 }
125 
126 #endif // TaxiPackets_h__
ActivateTaxi(WorldPacket &&packet)
Definition: TaxiPackets.h:90
Definition: TaxiPackets.h:116
TaxiNodeStatusQuery(WorldPacket &&packet)
Definition: TaxiPackets.h:32
Definition: Opcodes.h:1568
Definition: Opcodes.h:734
Definition: TaxiPackets.h:67
STL namespace.
Definition: TaxiPackets.h:29
Definition: Opcodes.h:671
NewTaxiPath()
Definition: TaxiPackets.h:101
Definition: TaxiPackets.h:56
void Read() override
Definition: TaxiPackets.cpp:52
TaxiQueryAvailableNodes(WorldPacket &&packet)
Definition: TaxiPackets.h:80
uint32 Node
Definition: TaxiPackets.h:95
void Read() override
Definition: TaxiPackets.cpp:57
WorldPacket _worldPacket
Definition: Packet.h:43
WorldPacket const * Write() override
Definition: TaxiPackets.cpp:34
TaxiRequestEarlyLanding(WorldPacket &&packet)
Definition: TaxiPackets.h:119
void Read() override
Definition: TaxiPackets.cpp:62
Definition: Packet.h:59
int32 CurrentNode
Definition: TaxiPackets.h:53
ObjectGuid UnitGUID
Definition: TaxiPackets.h:52
Definition: TaxiPackets.h:87
EnableTaxiNode(WorldPacket &&packet)
Definition: TaxiPackets.h:70
Definition: Packet.h:46
WorldPacket const * Write() override
Definition: TaxiPackets.cpp:68
ObjectGuid Vendor
Definition: TaxiPackets.h:94
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Definition: Opcodes.h:1306
void Read() override
Definition: TaxiPackets.h:121
Definition: Opcodes.h:52
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
WorldPacket const * Write() override
Definition: TaxiPackets.cpp:25
ObjectGuid Unit
Definition: TaxiPackets.h:84
uint8 Reply
Definition: TaxiPackets.h:113
Definition: Opcodes.h:673
void Read() override
Definition: TaxiPackets.cpp:20
std::array< uint8, TaxiMaskSize > TaxiMask
Definition: DB2Structure.h:1453
Definition: BattlegroundMgr.h:57
Optional< ShowTaxiNodesWindowInfo > WindowInfo
Definition: TaxiPackets.h:63
WorldPacket const * Write() override
Definition: TaxiPackets.h:103
ObjectGuid Unit
Definition: TaxiPackets.h:47
Definition: TaxiPackets.h:106
Definition: Opcodes.h:672
ShowTaxiNodes()
Definition: TaxiPackets.h:59
ObjectGuid UnitGUID
Definition: TaxiPackets.h:36
Definition: TaxiPackets.h:39
uint8_t uint8
Definition: Define.h:152
Definition: Opcodes.h:1522
Definition: ObjectGuid.h:189
ActivateTaxiReply()
Definition: TaxiPackets.h:109
Definition: TaxiPackets.h:98
Definition: Opcodes.h:261
uint8 Status
Definition: TaxiPackets.h:46
ObjectGuid Unit
Definition: TaxiPackets.h:74
TaxiMask const * Nodes
Definition: TaxiPackets.h:64
Definition: WorldPacket.h:26
TaxiNodeStatus()
Definition: TaxiPackets.h:42