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

#include <BattlegroundPackets.h>

Public Member Functions

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

uint8 MaxLevel = 0
 
bool PvpAnywhere = false
 
ObjectGuid BattlemasterGuid
 
bool IsRandomBG = false
 
uint8 MinLevel = 0
 
bool HasHolidayWinToday = false
 
int32 BattlemasterListID = 0
 
bool HasRandomWinToday = false
 
std::vector< int32Battlefields
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Battleground::BattlefieldList::BattlefieldList ( )
inline
268 : ServerPacket(SMSG_BATTLEFIELD_LIST, 1 + 1 + 16 + 1 + 1 + 1 + 4 + 1 + 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:778

Member Function Documentation

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

Implements WorldPackets::Packet.

210 {
215  _worldPacket << uint32(Battlefields.size());
216  if (!Battlefields.empty())
218 
224  return &_worldPacket;
225 }
std::vector< int32 > Battlefields
Definition: BattlegroundPackets.h:280
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
ObjectGuid BattlemasterGuid
Definition: BattlegroundPackets.h:274
bool HasRandomWinToday
Definition: BattlegroundPackets.h:279
bool PvpAnywhere
Definition: BattlegroundPackets.h:273
void append(T value)
Definition: ByteBuffer.h:143
uint8_t uint8
Definition: g3dmath.h:164
uint8 MinLevel
Definition: BattlegroundPackets.h:276
int32_t int32
Definition: g3dmath.h:167
int32 BattlemasterListID
Definition: BattlegroundPackets.h:278
bool HasHolidayWinToday
Definition: BattlegroundPackets.h:277
uint32_t uint32
Definition: g3dmath.h:168
uint8 MaxLevel
Definition: BattlegroundPackets.h:272
bool IsRandomBG
Definition: BattlegroundPackets.h:275

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<int32> WorldPackets::Battleground::BattlefieldList::Battlefields
ObjectGuid WorldPackets::Battleground::BattlefieldList::BattlemasterGuid
int32 WorldPackets::Battleground::BattlefieldList::BattlemasterListID = 0
bool WorldPackets::Battleground::BattlefieldList::HasHolidayWinToday = false
bool WorldPackets::Battleground::BattlefieldList::HasRandomWinToday = false
bool WorldPackets::Battleground::BattlefieldList::IsRandomBG = false
uint8 WorldPackets::Battleground::BattlefieldList::MaxLevel = 0
uint8 WorldPackets::Battleground::BattlefieldList::MinLevel = 0
bool WorldPackets::Battleground::BattlefieldList::PvpAnywhere = false

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