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

#include <CombatPackets.h>

Public Member Functions

 SAttackStop ()
 
 SAttackStop (Unit const *attacker, Unit const *victim)
 
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 Attacker
 
ObjectGuid Victim
 
bool NowDead = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Combat::SAttackStop::SAttackStop ( )
inline
72 : ServerPacket(SMSG_ATTACK_STOP, 16 + 16 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:757
WorldPackets::Combat::SAttackStop::SAttackStop ( Unit const attacker,
Unit const victim 
)
34  : ServerPacket(SMSG_ATTACK_STOP, 16 + 16 + 1)
35 {
36  Attacker = attacker->GetGUID();
37  if (victim)
38  {
39  Victim = victim->GetGUID();
40  NowDead = victim->isDead();
41  }
42 }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
ObjectGuid Attacker
Definition: CombatPackets.h:77
Definition: Opcodes.h:757
bool NowDead
Definition: CombatPackets.h:79
ObjectGuid Victim
Definition: CombatPackets.h:78

+ Here is the call graph for this function:

Member Function Documentation

WorldPacket const * WorldPackets::Combat::SAttackStop::Write ( )
overridevirtual

Implements WorldPackets::Packet.

45 {
50 
51  return &_worldPacket;
52 }
ObjectGuid Attacker
Definition: CombatPackets.h:77
void FlushBits()
Definition: ByteBuffer.h:150
bool NowDead
Definition: CombatPackets.h:79
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
ObjectGuid Victim
Definition: CombatPackets.h:78

+ Here is the call graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::Combat::SAttackStop::Attacker
bool WorldPackets::Combat::SAttackStop::NowDead = false
ObjectGuid WorldPackets::Combat::SAttackStop::Victim

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