AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Misc::RandomRoll Class Referencefinal

#include "MiscPackets.h"

Inheritance diagram for WorldPackets::Misc::RandomRoll:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 RandomRoll ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, std::size_t initialSize=200)
 
void Read () final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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 const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Public Attributes

uint32 Min = 0
 
uint32 Max = 0
 
uint32 Result = 0
 
ObjectGuid Roller
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ RandomRoll()

WorldPackets::Misc::RandomRoll::RandomRoll ( )
inline
110: ServerPacket(MSG_RANDOM_ROLL, 4 + 4 + 4 + 8) { }
@ MSG_RANDOM_ROLL
Definition: Opcodes.h:537
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::Misc::RandomRoll::Write ( )
overridevirtual

Implements WorldPackets::Packet.

77{
82
83 return &_worldPacket;
84}
std::uint32_t uint32
Definition: Define.h:107
WorldPacket _worldPacket
Definition: Packet.h:42
uint32 Max
Definition: MiscPackets.h:115
uint32 Result
Definition: MiscPackets.h:116
uint32 Min
Definition: MiscPackets.h:114
ObjectGuid Roller
Definition: MiscPackets.h:117

References Max.

Referenced by Player::DoRandomRoll().

Member Data Documentation

◆ Max

uint32 WorldPackets::Misc::RandomRoll::Max = 0

Referenced by Player::DoRandomRoll().

◆ Min

uint32 WorldPackets::Misc::RandomRoll::Min = 0

Referenced by Player::DoRandomRoll().

◆ Result

uint32 WorldPackets::Misc::RandomRoll::Result = 0

Referenced by Player::DoRandomRoll().

◆ Roller

ObjectGuid WorldPackets::Misc::RandomRoll::Roller

Referenced by Player::DoRandomRoll().