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

#include <BattlegroundPackets.h>

Public Types

enum  ResultCode : uint8 { PVP_REPORT_AFK_SUCCESS = 0, PVP_REPORT_AFK_GENERIC_FAILURE = 1, PVP_REPORT_AFK_SYSTEM_ENABLED = 5, PVP_REPORT_AFK_SYSTEM_DISABLED = 6 }
 

Public Member Functions

 ReportPvPPlayerAFKResult ()
 
WorldPacket constWrite () override
 
- 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 Offender
 
uint8 NumPlayersIHaveReported = 0
 
uint8 NumBlackMarksOnOffender = 0
 
uint8 Result = PVP_REPORT_AFK_GENERIC_FAILURE
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Member Enumeration Documentation

Enumerator
PVP_REPORT_AFK_SUCCESS 
PVP_REPORT_AFK_GENERIC_FAILURE 
PVP_REPORT_AFK_SYSTEM_ENABLED 
PVP_REPORT_AFK_SYSTEM_DISABLED 
331  : uint8
332  {
334  PVP_REPORT_AFK_GENERIC_FAILURE = 1, // there are more error codes but they are impossible to receive without modifying the client
337  };
uint8_t uint8
Definition: Define.h:152

Constructor & Destructor Documentation

WorldPackets::Battleground::ReportPvPPlayerAFKResult::ReportPvPPlayerAFKResult ( )
inline
327 : ServerPacket(SMSG_REPORT_PVP_PLAYER_AFK_RESULT, 16 + 1 + 1 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1446

Member Function Documentation

WorldPacket const * WorldPackets::Battleground::ReportPvPPlayerAFKResult::Write ( )
overridevirtual

Implements WorldPackets::Packet.

245 {
250  return &_worldPacket;
251 }
uint8 NumPlayersIHaveReported
Definition: BattlegroundPackets.h:340
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid Offender
Definition: BattlegroundPackets.h:339
uint8 NumBlackMarksOnOffender
Definition: BattlegroundPackets.h:341
uint8 Result
Definition: BattlegroundPackets.h:342
uint8_t uint8
Definition: g3dmath.h:164

Member Data Documentation

uint8 WorldPackets::Battleground::ReportPvPPlayerAFKResult::NumBlackMarksOnOffender = 0
uint8 WorldPackets::Battleground::ReportPvPPlayerAFKResult::NumPlayersIHaveReported = 0
ObjectGuid WorldPackets::Battleground::ReportPvPPlayerAFKResult::Offender
uint8 WorldPackets::Battleground::ReportPvPPlayerAFKResult::Result = PVP_REPORT_AFK_GENERIC_FAILURE

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