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

#include <CombatLogPackets.h>

Public Member Functions

 SpellDamageShield ()
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::CombatLog::CombatLogServerPacket
 CombatLogServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
WorldPacket constGetFullLogPacket () const
 
WorldPacket constGetBasicLogPacket () const
 
- 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 Defender
 
int32 SpellID = 0
 
int32 TotalDamage = 0
 
int32 OverKill = 0
 
int32 SchoolMask = 0
 
int32 LogAbsorbed = 0
 
- Public Attributes inherited from WorldPackets::CombatLog::CombatLogServerPacket
Spells::SpellCastLogData LogData
 

Additional Inherited Members

- Protected Member Functions inherited from WorldPackets::CombatLog::CombatLogServerPacket
template<typename T >
void operator<< (T const &val)
 
void WriteLogDataBit ()
 
void FlushBits ()
 
bool WriteBit (bool bit)
 
void WriteBits (uint32 value, uint32 bitCount)
 
ByteBufferWriteLogData ()
 
- Protected Attributes inherited from WorldPackets::CombatLog::CombatLogServerPacket
WorldPacket _fullLogPacket
 
- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::CombatLog::SpellDamageShield::SpellDamageShield ( )
inline
307 : CombatLogServerPacket(SMSG_SPELL_DAMAGE_SHIELD, 4 + 16 + 4 + 4 + 16 + 4 + 4 + 1) { }
Definition: Opcodes.h:1531
CombatLogServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: CombatLogPackets.h:32

Member Function Documentation

WorldPacket const * WorldPackets::CombatLog::SpellDamageShield::Write ( )
overridevirtual

Implements WorldPackets::Packet.

265 {
266  *this << Attacker;
267  *this << Defender;
268  *this << int32(SpellID);
269  *this << int32(TotalDamage);
270  *this << int32(OverKill);
271  *this << int32(SchoolMask);
272  *this << int32(LogAbsorbed);
273  WriteLogDataBit();
274  FlushBits();
275  WriteLogData();
276 
277  return &_worldPacket;
278 }
int32 TotalDamage
Definition: CombatLogPackets.h:314
int32 OverKill
Definition: CombatLogPackets.h:315
ByteBuffer & WriteLogData()
Definition: CombatLogPackets.h:73
int32 SchoolMask
Definition: CombatLogPackets.h:316
void WriteLogDataBit()
Definition: CombatLogPackets.h:48
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid Defender
Definition: CombatLogPackets.h:312
int32 LogAbsorbed
Definition: CombatLogPackets.h:317
void FlushBits()
Definition: CombatLogPackets.h:54
ObjectGuid Attacker
Definition: CombatLogPackets.h:311
int32_t int32
Definition: g3dmath.h:167
int32 SpellID
Definition: CombatLogPackets.h:313

Member Data Documentation

ObjectGuid WorldPackets::CombatLog::SpellDamageShield::Attacker
ObjectGuid WorldPackets::CombatLog::SpellDamageShield::Defender
int32 WorldPackets::CombatLog::SpellDamageShield::LogAbsorbed = 0
int32 WorldPackets::CombatLog::SpellDamageShield::OverKill = 0
int32 WorldPackets::CombatLog::SpellDamageShield::SchoolMask = 0
int32 WorldPackets::CombatLog::SpellDamageShield::SpellID = 0
int32 WorldPackets::CombatLog::SpellDamageShield::TotalDamage = 0

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