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

#include <CombatLogPackets.h>

Public Member Functions

 SpellHealLog ()
 
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 CasterGUID
 
ObjectGuid TargetGUID
 
int32 SpellID = 0
 
int32 Health = 0
 
int32 OverHeal = 0
 
int32 Absorbed = 0
 
bool Crit = false
 
bool Multistrike = false
 
Optional< float > CritRollMade
 
Optional< float > CritRollNeeded
 
- 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::SpellHealLog::SpellHealLog ( )
inline
140 : CombatLogServerPacket(SMSG_SPELL_HEAL_LOG, 16 + 16 + 4 * 4 + 1) { }
Definition: Opcodes.h:1539
CombatLogServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: CombatLogPackets.h:32

Member Function Documentation

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

Implements WorldPackets::Packet.

112 {
113  *this << TargetGUID;
114  *this << CasterGUID;
115  *this << int32(SpellID);
116  *this << int32(Health);
117  *this << int32(OverHeal);
118  *this << int32(Absorbed);
119  WriteBit(Crit);
121  WriteBit(CritRollMade.is_initialized());
122  WriteBit(CritRollNeeded.is_initialized());
123  WriteLogDataBit();
124  FlushBits();
125 
126  if (CritRollMade)
127  *this << *CritRollMade;
128 
129  if (CritRollNeeded)
130  *this << *CritRollNeeded;
131 
132  WriteLogData();
133 
134  return &_worldPacket;
135 }
int32 Absorbed
Definition: CombatLogPackets.h:149
ObjectGuid TargetGUID
Definition: CombatLogPackets.h:145
ObjectGuid CasterGUID
Definition: CombatLogPackets.h:144
bool Multistrike
Definition: CombatLogPackets.h:151
bool Crit
Definition: CombatLogPackets.h:150
ByteBuffer & WriteLogData()
Definition: CombatLogPackets.h:73
void WriteLogDataBit()
Definition: CombatLogPackets.h:48
int32 Health
Definition: CombatLogPackets.h:147
WorldPacket _worldPacket
Definition: Packet.h:43
Optional< float > CritRollNeeded
Definition: CombatLogPackets.h:153
void FlushBits()
Definition: CombatLogPackets.h:54
int32 SpellID
Definition: CombatLogPackets.h:146
bool WriteBit(bool bit)
Definition: CombatLogPackets.h:60
int32_t int32
Definition: g3dmath.h:167
int32 OverHeal
Definition: CombatLogPackets.h:148
Optional< float > CritRollMade
Definition: CombatLogPackets.h:152

Member Data Documentation

int32 WorldPackets::CombatLog::SpellHealLog::Absorbed = 0
ObjectGuid WorldPackets::CombatLog::SpellHealLog::CasterGUID
bool WorldPackets::CombatLog::SpellHealLog::Crit = false
Optional<float> WorldPackets::CombatLog::SpellHealLog::CritRollMade
Optional<float> WorldPackets::CombatLog::SpellHealLog::CritRollNeeded
int32 WorldPackets::CombatLog::SpellHealLog::Health = 0
bool WorldPackets::CombatLog::SpellHealLog::Multistrike = false
int32 WorldPackets::CombatLog::SpellHealLog::OverHeal = 0
int32 WorldPackets::CombatLog::SpellHealLog::SpellID = 0
ObjectGuid WorldPackets::CombatLog::SpellHealLog::TargetGUID

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