AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ArenaScore Struct Reference

#include "ArenaScore.h"

Inheritance diagram for ArenaScore:
BattlegroundScore

Protected Member Functions

 ArenaScore (ObjectGuid playerGuid, TeamId team)
 
void AppendToPacket (WorldPacket &data) final
 
void BuildObjectivesBlock (WorldPacket &data) final
 
std::string ToString () const override
 
- Protected Member Functions inherited from BattlegroundScore
 BattlegroundScore (ObjectGuid playerGuid)
 
virtual ~BattlegroundScore ()=default
 
virtual void UpdateScore (uint32 type, uint32 value)
 
virtual void AppendToPacket (WorldPacket &data)
 
virtual void BuildObjectivesBlock (WorldPacket &)=0
 
virtual std::string ToString () const
 
uint32 GetKillingBlows () const
 
uint32 GetDeaths () const
 
uint32 GetHonorableKills () const
 
uint32 GetBonusHonor () const
 
uint32 GetDamageDone () const
 
uint32 GetHealingDone () const
 
virtual uint32 GetAttr1 () const
 
virtual uint32 GetAttr2 () const
 
virtual uint32 GetAttr3 () const
 
virtual uint32 GetAttr4 () const
 
virtual uint32 GetAttr5 () const
 

Protected Attributes

uint8 PvPTeamId
 
- Protected Attributes inherited from BattlegroundScore
ObjectGuid PlayerGuid
 
uint32 KillingBlows = 0
 
uint32 Deaths = 0
 
uint32 HonorableKills = 0
 
uint32 BonusHonor = 0
 
uint32 DamageDone = 0
 
uint32 HealingDone = 0
 

Friends

class Arena
 

Detailed Description

Constructor & Destructor Documentation

◆ ArenaScore()

ArenaScore::ArenaScore ( ObjectGuid  playerGuid,
TeamId  team 
)
inlineprotected
30 :
@ PVP_TEAM_HORDE
Definition: SharedDefines.h:3440
@ PVP_TEAM_ALLIANCE
Definition: SharedDefines.h:3441
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
uint8 PvPTeamId
Definition: ArenaScore.h:42
Definition: BattlegroundScore.h:58

Member Function Documentation

◆ AppendToPacket()

void ArenaScore::AppendToPacket ( WorldPacket data)
finalprotectedvirtual

Reimplemented from BattlegroundScore.

31{
32 data << PlayerGuid;
33
34 data << uint32(KillingBlows);
35 data << uint8(PvPTeamId);
36 data << uint32(DamageDone);
37 data << uint32(HealingDone);
38
40}
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
PvPTeamId
Definition: SharedDefines.h:3439
void BuildObjectivesBlock(WorldPacket &data) final
Definition: Arena.cpp:42
uint32 KillingBlows
Definition: BattlegroundScore.h:116
ObjectGuid PlayerGuid
Definition: BattlegroundScore.h:113
uint32 HealingDone
Definition: BattlegroundScore.h:121
uint32 DamageDone
Definition: BattlegroundScore.h:120

References BuildObjectivesBlock(), BattlegroundScore::DamageDone, BattlegroundScore::HealingDone, BattlegroundScore::KillingBlows, and BattlegroundScore::PlayerGuid.

◆ BuildObjectivesBlock()

void ArenaScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

43{
44 data << uint32(0); // Objectives Count
45}

Referenced by AppendToPacket().

◆ ToString()

std::string ArenaScore::ToString ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

38 {
39 return Acore::StringFormat("Damage done: {}, Healing done: {}, Killing blows: {}", DamageDone, HealingDone, KillingBlows);
40 }
std::string StringFormat(FormatString< Args... > fmt, Args &&... args)
Default AC string format function.
Definition: StringFormat.h:34

References Acore::StringFormat().

Friends And Related Function Documentation

◆ Arena

friend class Arena
friend

Member Data Documentation

◆ PvPTeamId

uint8 ArenaScore::PvPTeamId
protected