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

#include <CombatLogPackets.h>

Public Member Functions

 SpellEnergizeLog ()
 
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 Type = 0
 
int32 Amount = 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::SpellEnergizeLog::SpellEnergizeLog ( )
inline
227 : CombatLogServerPacket(SMSG_SPELL_ENERGIZE_LOG, 16 + 16 + 4 + 4 + 4 + 1) { }
CombatLogServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: CombatLogPackets.h:32
Definition: Opcodes.h:1534

Member Function Documentation

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

Implements WorldPackets::Packet.

182 {
183  *this << CasterGUID;
184  *this << TargetGUID;
185 
186  *this << int32(SpellID);
187  *this << int32(Type);
188  *this << int32(Amount);
189 
190  WriteLogDataBit();
191  FlushBits();
192  WriteLogData();
193 
194  return &_worldPacket;
195 }
ObjectGuid CasterGUID
Definition: CombatLogPackets.h:231
int32 SpellID
Definition: CombatLogPackets.h:233
ByteBuffer & WriteLogData()
Definition: CombatLogPackets.h:73
void WriteLogDataBit()
Definition: CombatLogPackets.h:48
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid TargetGUID
Definition: CombatLogPackets.h:232
void FlushBits()
Definition: CombatLogPackets.h:54
int32_t int32
Definition: g3dmath.h:167
int32 Amount
Definition: CombatLogPackets.h:235
Type
Type of JSON value.
Definition: rapidjson.h:642

Member Data Documentation

int32 WorldPackets::CombatLog::SpellEnergizeLog::Amount = 0
ObjectGuid WorldPackets::CombatLog::SpellEnergizeLog::CasterGUID
int32 WorldPackets::CombatLog::SpellEnergizeLog::SpellID = 0
ObjectGuid WorldPackets::CombatLog::SpellEnergizeLog::TargetGUID
int32 WorldPackets::CombatLog::SpellEnergizeLog::Type = 0

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