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

#include <ReputationPackets.h>

Public Member Functions

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

int32 FactionStandings [FactionCount]
 
bool FactionHasBonus [FactionCount]
 
uint8 FactionFlags [FactionCount]
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Reputation::InitializeFactions::InitializeFactions ( )
inline
33  {
34  for (uint16 i = 0; i < FactionCount; ++i)
35  {
36  FactionStandings[i] = 0;
37  FactionHasBonus[i] = false;
38  FactionFlags[i] = 0;
39  }
40  }
static uint16 const FactionCount
Definition: ReputationPackets.h:27
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1120
uint16_t uint16
Definition: Define.h:151
FactionFlags
Definition: ReputationMgr.h:35
int32 FactionStandings[FactionCount]
Definition: ReputationPackets.h:44
bool FactionHasBonus[FactionCount]
Definition: ReputationPackets.h:45

Member Function Documentation

WorldPacket const * WorldPackets::Reputation::InitializeFactions::Write ( )
overridevirtual

Implements WorldPackets::Packet.

21 {
22  for (uint16 i = 0; i < FactionCount; ++i)
23  {
26  }
27 
28  for (uint16 i = 0; i < FactionCount; ++i)
30 
32 
33  return &_worldPacket;
34 }
static uint16 const FactionCount
Definition: ReputationPackets.h:27
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint16_t uint16
Definition: Define.h:151
uint8_t uint8
Definition: g3dmath.h:164
int32_t int32
Definition: g3dmath.h:167
FactionFlags
Definition: ReputationMgr.h:35
int32 FactionStandings[FactionCount]
Definition: ReputationPackets.h:44
bool FactionHasBonus[FactionCount]
Definition: ReputationPackets.h:45

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint8 WorldPackets::Reputation::InitializeFactions::FactionFlags[FactionCount]
See also
enum FactionFlags
bool WorldPackets::Reputation::InitializeFactions::FactionHasBonus[FactionCount]
Todo:
: implement faction bonus
int32 WorldPackets::Reputation::InitializeFactions::FactionStandings[FactionCount]

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