All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Spells::UpdateMissileTrajectory Class Referencefinal

#include <SpellPackets.h>

Public Member Functions

 UpdateMissileTrajectory (WorldPacket &&packet)
void Read () override
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
WorldPacket constWrite () overridefinal
OpcodeClient 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 Guid
uint16 MoveMsgID = 0
int32 SpellID = 0
float Pitch = 0.0f
float Speed = 0.0f
G3D::Vector3 FirePos
G3D::Vector3 ImpactPos
Optional< MovementInfoStatus

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Spells::UpdateMissileTrajectory::UpdateMissileTrajectory ( WorldPacket &&  packet)
857 : ClientPacket(CMSG_UPDATE_MISSILE_TRAJECTORY, std::move(packet)) { }
Definition: Opcodes.h:700
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Spells::UpdateMissileTrajectory::Read ( )

Implements WorldPackets::Packet.

821 {
822  _worldPacket >> Guid;
825  _worldPacket >> Pitch;
826  _worldPacket >> Speed;
829  bool hasStatus = _worldPacket.ReadBit();
832  if (hasStatus)
833  {
834  MovementInfo info;
835  _worldPacket >> info;
836  Status = info;
837  }
838 }
int32 SpellID
Definition: SpellPackets.h:863
float Speed
Definition: SpellPackets.h:865
G3D::Vector3 ImpactPos
Definition: SpellPackets.h:867
G3D::Vector3 FirePos
Definition: SpellPackets.h:866
void ResetBitPos()
Definition: ByteBuffer.h:161
WorldPacket _worldPacket
Definition: Packet.h:43
float Pitch
Definition: SpellPackets.h:864
Definition: Object.h:267
ObjectGuid Guid
Definition: SpellPackets.h:861
bool ReadBit()
Definition: ByteBuffer.h:186
uint16 MoveMsgID
Definition: SpellPackets.h:862
Optional< MovementInfo > Status
Definition: SpellPackets.h:868

Member Data Documentation

G3D::Vector3 WorldPackets::Spells::UpdateMissileTrajectory::FirePos
ObjectGuid WorldPackets::Spells::UpdateMissileTrajectory::Guid
G3D::Vector3 WorldPackets::Spells::UpdateMissileTrajectory::ImpactPos
uint16 WorldPackets::Spells::UpdateMissileTrajectory::MoveMsgID = 0
float WorldPackets::Spells::UpdateMissileTrajectory::Pitch = 0.0f
float WorldPackets::Spells::UpdateMissileTrajectory::Speed = 0.0f
int32 WorldPackets::Spells::UpdateMissileTrajectory::SpellID = 0
Optional<MovementInfo> WorldPackets::Spells::UpdateMissileTrajectory::Status

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