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

#include <MovementPackets.h>

Public Member Functions

 MoveUpdateTeleport ()
 
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

MovementInfomovementInfo = nullptr
 
std::vector< MovementForceMovementForces
 
Optional< float > SwimBackSpeed
 
Optional< float > FlightSpeed
 
Optional< float > SwimSpeed
 
Optional< float > WalkSpeed
 
Optional< float > TurnRate
 
Optional< float > RunSpeed
 
Optional< float > FlightBackSpeed
 
Optional< float > RunBackSpeed
 
Optional< float > PitchRate
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Movement::MoveUpdateTeleport::MoveUpdateTeleport ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1302

Member Function Documentation

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

Implements WorldPackets::Packet.

539 {
541 
542  _worldPacket << int32(MovementForces.size());
544  {
545  _worldPacket << force.ID;
546  _worldPacket << force.Direction;
547  _worldPacket << force.TransportPosition;
548  _worldPacket << force.TransportID;
549  _worldPacket << force.Magnitude;
550  _worldPacket.WriteBits(force.Type, 2);
552  }
553 
554  _worldPacket.WriteBit(WalkSpeed.is_initialized());
555  _worldPacket.WriteBit(RunSpeed.is_initialized());
556  _worldPacket.WriteBit(RunBackSpeed.is_initialized());
557  _worldPacket.WriteBit(SwimSpeed.is_initialized());
558  _worldPacket.WriteBit(SwimBackSpeed.is_initialized());
559  _worldPacket.WriteBit(FlightSpeed.is_initialized());
560  _worldPacket.WriteBit(FlightBackSpeed.is_initialized());
561  _worldPacket.WriteBit(TurnRate.is_initialized());
562  _worldPacket.WriteBit(PitchRate.is_initialized());
563 
565 
566  if (WalkSpeed)
568 
569  if (RunSpeed)
571 
572  if (RunBackSpeed)
574 
575  if (SwimSpeed)
577 
578  if (SwimBackSpeed)
580 
581  if (FlightSpeed)
583 
584  if (FlightBackSpeed)
586 
587  if (TurnRate)
589 
590  if (PitchRate)
592 
593  return &_worldPacket;
594 }
Optional< float > FlightSpeed
Definition: MovementPackets.h:268
void FlushBits()
Definition: ByteBuffer.h:150
Optional< float > WalkSpeed
Definition: MovementPackets.h:270
Optional< float > FlightBackSpeed
Definition: MovementPackets.h:273
WorldPacket _worldPacket
Definition: Packet.h:43
Optional< float > SwimBackSpeed
Definition: MovementPackets.h:267
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
Optional< float > PitchRate
Definition: MovementPackets.h:275
Definition: MovementPackets.h:248
Optional< float > RunBackSpeed
Definition: MovementPackets.h:274
int32_t int32
Definition: g3dmath.h:167
std::vector< MovementForce > MovementForces
Definition: MovementPackets.h:266
Optional< float > RunSpeed
Definition: MovementPackets.h:272
Optional< float > SwimSpeed
Definition: MovementPackets.h:269
Optional< float > TurnRate
Definition: MovementPackets.h:271
MovementInfo * movementInfo
Definition: MovementPackets.h:265
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

Optional<float> WorldPackets::Movement::MoveUpdateTeleport::FlightBackSpeed
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::FlightSpeed
std::vector<MovementForce> WorldPackets::Movement::MoveUpdateTeleport::MovementForces
MovementInfo* WorldPackets::Movement::MoveUpdateTeleport::movementInfo = nullptr
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::PitchRate
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::RunBackSpeed
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::RunSpeed
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::SwimBackSpeed
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::SwimSpeed
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::TurnRate
Optional<float> WorldPackets::Movement::MoveUpdateTeleport::WalkSpeed

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