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

#include <MovementPackets.h>

Public Member Functions

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

ObjectGuid MoverGUID
 
G3D::Vector2 Direction
 
float HorzSpeed = 0.0f
 
uint32 SequenceIndex = 0
 
float VertSpeed = 0.0f
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Movement::MoveKnockBack::MoveKnockBack ( )
inline
340 : ServerPacket(SMSG_MOVE_KNOCK_BACK, 16 + 8 + 4 + 4 + 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1232

Member Function Documentation

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

Implements WorldPackets::Packet.

634 {
638  _worldPacket << float(HorzSpeed);
639  _worldPacket << float(VertSpeed);
640 
641  return &_worldPacket;
642 }
ObjectGuid MoverGUID
Definition: MovementPackets.h:344
uint32 SequenceIndex
Definition: MovementPackets.h:347
WorldPacket _worldPacket
Definition: Packet.h:43
G3D::Vector2 Direction
Definition: MovementPackets.h:345
float HorzSpeed
Definition: MovementPackets.h:346
uint32_t uint32
Definition: g3dmath.h:168
float VertSpeed
Definition: MovementPackets.h:348

+ Here is the caller graph for this function:

Member Data Documentation

G3D::Vector2 WorldPackets::Movement::MoveKnockBack::Direction
float WorldPackets::Movement::MoveKnockBack::HorzSpeed = 0.0f
ObjectGuid WorldPackets::Movement::MoveKnockBack::MoverGUID
uint32 WorldPackets::Movement::MoveKnockBack::SequenceIndex = 0
float WorldPackets::Movement::MoveKnockBack::VertSpeed = 0.0f

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