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

#include <CombatLogPackets.h>

Public Member Functions

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

int32 Absorbed = 0
 
int32 ShieldBlock = 0
 
ObjectGuid Me
 
int32 SpellID = 0
 
int32 Resisted = 0
 
bool Periodic = 0.0f
 
uint8 SchoolMask = 0
 
ObjectGuid CasterGUID
 
int32 Damage = 0
 
int32 Flags = 0
 
int32 Overkill = 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::SpellNonMeleeDamageLog::SpellNonMeleeDamageLog ( )
inline
Definition: Opcodes.h:1544
CombatLogServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: CombatLogPackets.h:32

Member Function Documentation

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

Implements WorldPackets::Packet.

22 {
23  *this << Me;
24  *this << CasterGUID;
25  *this << int32(SpellID);
26  *this << int32(Damage);
27  *this << int32(Overkill);
28  *this << uint8(SchoolMask);
29  *this << int32(ShieldBlock);
30  *this << int32(Resisted);
31  *this << int32(Absorbed);
33  WriteBits(Flags, 8);
34  WriteBit(false); // Debug info
36  FlushBits();
37  WriteLogData();
38 
39  return &_worldPacket;
40 }
ObjectGuid CasterGUID
Definition: CombatLogPackets.h:92
int32 Resisted
Definition: CombatLogPackets.h:89
int32 SpellID
Definition: CombatLogPackets.h:88
int32 Absorbed
Definition: CombatLogPackets.h:85
bool Periodic
Definition: CombatLogPackets.h:90
ObjectGuid Me
Definition: CombatLogPackets.h:87
ByteBuffer & WriteLogData()
Definition: CombatLogPackets.h:73
int32 Overkill
Definition: CombatLogPackets.h:96
uint8 SchoolMask
Definition: CombatLogPackets.h:91
void WriteLogDataBit()
Definition: CombatLogPackets.h:48
WorldPacket _worldPacket
Definition: Packet.h:43
int32 Damage
Definition: CombatLogPackets.h:93
int32 Flags
Definition: CombatLogPackets.h:95
int32 ShieldBlock
Definition: CombatLogPackets.h:86
void FlushBits()
Definition: CombatLogPackets.h:54
uint8_t uint8
Definition: g3dmath.h:164
bool WriteBit(bool bit)
Definition: CombatLogPackets.h:60
int32_t int32
Definition: g3dmath.h:167
void WriteBits(uint32 value, uint32 bitCount)
Definition: CombatLogPackets.h:67

+ Here is the call graph for this function:

Member Data Documentation

int32 WorldPackets::CombatLog::SpellNonMeleeDamageLog::Absorbed = 0
ObjectGuid WorldPackets::CombatLog::SpellNonMeleeDamageLog::CasterGUID
int32 WorldPackets::CombatLog::SpellNonMeleeDamageLog::Damage = 0
int32 WorldPackets::CombatLog::SpellNonMeleeDamageLog::Flags = 0
ObjectGuid WorldPackets::CombatLog::SpellNonMeleeDamageLog::Me
int32 WorldPackets::CombatLog::SpellNonMeleeDamageLog::Overkill = 0
bool WorldPackets::CombatLog::SpellNonMeleeDamageLog::Periodic = 0.0f
int32 WorldPackets::CombatLog::SpellNonMeleeDamageLog::Resisted = 0
uint8 WorldPackets::CombatLog::SpellNonMeleeDamageLog::SchoolMask = 0
int32 WorldPackets::CombatLog::SpellNonMeleeDamageLog::ShieldBlock = 0
int32 WorldPackets::CombatLog::SpellNonMeleeDamageLog::SpellID = 0

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