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

#include <CombatLogPackets.h>

Public Member Functions

 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
 
virtual WorldPacket constWrite ()=0
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

Spells::SpellCastLogData LogData
 

Protected Member Functions

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

WorldPacket _fullLogPacket
 
- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::CombatLog::CombatLogServerPacket::CombatLogServerPacket ( OpcodeServer  opcode,
size_t  initialSize = 200,
ConnectionType  connection = CONNECTION_TYPE_DEFAULT 
)
inline
33  : ServerPacket(opcode, initialSize, connection), _fullLogPacket(opcode, initialSize, connection) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75

Member Function Documentation

void WorldPackets::CombatLog::CombatLogServerPacket::FlushBits ( )
inlineprotected
55  {
58  }
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

WorldPacket const* WorldPackets::CombatLog::CombatLogServerPacket::GetBasicLogPacket ( ) const
inline
36 { return &_worldPacket; }
WorldPacket _worldPacket
Definition: Packet.h:43

+ Here is the caller graph for this function:

WorldPacket const* WorldPackets::CombatLog::CombatLogServerPacket::GetFullLogPacket ( ) const
inline
35 { return &_fullLogPacket; }
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75

+ Here is the caller graph for this function:

template<typename T >
void WorldPackets::CombatLog::CombatLogServerPacket::operator<< ( T const val)
inlineprotected
43  {
44  _worldPacket << val;
45  _fullLogPacket << val;
46  }
WorldPacket _worldPacket
Definition: Packet.h:43
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75
bool WorldPackets::CombatLog::CombatLogServerPacket::WriteBit ( bool  bit)
inlineprotected
61  {
64  return bit;
65  }
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WorldPackets::CombatLog::CombatLogServerPacket::WriteBits ( uint32  value,
uint32  bitCount 
)
inlineprotected
68  {
69  _worldPacket.WriteBits(value, bitCount);
70  _fullLogPacket.WriteBits(value, bitCount);
71  }
WorldPacket _worldPacket
Definition: Packet.h:43
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75
const FieldDescriptor value
Definition: descriptor.h:1522
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ByteBuffer& WorldPackets::CombatLog::CombatLogServerPacket::WriteLogData ( )
inlineprotected
73 { return _fullLogPacket << LogData; }
Spells::SpellCastLogData LogData
Definition: CombatLogPackets.h:38
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75

+ Here is the caller graph for this function:

void WorldPackets::CombatLog::CombatLogServerPacket::WriteLogDataBit ( )
inlineprotected
49  {
50  _worldPacket.WriteBit(false);
52  }
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
WorldPacket _fullLogPacket
Definition: CombatLogPackets.h:75

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

WorldPacket WorldPackets::CombatLog::CombatLogServerPacket::_fullLogPacket
protected
Spells::SpellCastLogData WorldPackets::CombatLog::CombatLogServerPacket::LogData

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