TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Movement::MoveTeleport Class Referencefinal

#include <MovementPackets.h>

Public Member Functions

 MoveTeleport ()
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
OpcodeServer GetOpcode () const
 
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
 
virtual ~Packet ()=default
 
 Packet (Packet const &right)=delete
 
Packetoperator= (Packet const &right)=delete
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

Position Pos
 
Optional< VehicleTeleportVehicle
 
uint32 SequenceIndex = 0
 
ObjectGuid MoverGUID
 
Optional< ObjectGuidTransportGUID
 
float Facing = 0.0f
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Movement::MoveTeleport::MoveTeleport ( )
inline
236 : ServerPacket(SMSG_MOVE_TELEPORT, 12+4+16+16+4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1284

Member Function Documentation

WorldPacket const * WorldPackets::Movement::MoveTeleport::Write ( )
overridevirtual

Implements WorldPackets::Packet.

514 {
517  _worldPacket << Pos.PositionXYZStream();
518  _worldPacket << Facing;
519 
520  _worldPacket.WriteBit(TransportGUID.is_initialized());
521  _worldPacket.WriteBit(Vehicle.is_initialized());
523 
524  if (TransportGUID)
526 
527  if (Vehicle)
528  {
529  _worldPacket << Vehicle->VehicleSeatIndex;
530  _worldPacket.WriteBit(Vehicle->VehicleExitVoluntary);
531  _worldPacket.WriteBit(Vehicle->VehicleExitTeleport);
533  }
534 
535  return &_worldPacket;
536 }
Definition: Vehicle.h:32
float Facing
Definition: MovementPackets.h:245
uint32 SequenceIndex
Definition: MovementPackets.h:242
ObjectGuid MoverGUID
Definition: MovementPackets.h:243
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
Optional< ObjectGuid > TransportGUID
Definition: MovementPackets.h:244
Pos
Definition: boss_gothik.cpp:115

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

float WorldPackets::Movement::MoveTeleport::Facing = 0.0f
ObjectGuid WorldPackets::Movement::MoveTeleport::MoverGUID
Position WorldPackets::Movement::MoveTeleport::Pos
uint32 WorldPackets::Movement::MoveTeleport::SequenceIndex = 0
Optional<ObjectGuid> WorldPackets::Movement::MoveTeleport::TransportGUID
Optional<VehicleTeleport> WorldPackets::Movement::MoveTeleport::Vehicle

The documentation for this class was generated from the following files: