AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
BattlegroundWGScore Struct Referencefinal

#include "BattlegroundWS.h"

Inheritance diagram for BattlegroundWGScore:
BattlegroundScore

Protected Member Functions

 BattlegroundWGScore (ObjectGuid playerGuid)
 
void UpdateScore (uint32 type, uint32 value) override
 
void BuildObjectivesBlock (WorldPacket &data) final
 
uint32 GetAttr1 () const override
 
uint32 GetAttr2 () 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

uint32 FlagCaptures = 0
 
uint32 FlagReturns = 0
 
- 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 BattlegroundWS
 

Detailed Description

Constructor & Destructor Documentation

◆ BattlegroundWGScore()

BattlegroundWGScore::BattlegroundWGScore ( ObjectGuid  playerGuid)
inlineprotected
192: BattlegroundScore(playerGuid) { }
Definition: BattlegroundScore.h:59

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundWGScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

29{
30 data << uint32(2); // Objectives Count
31 data << uint32(FlagCaptures);
32 data << uint32(FlagReturns);
33}
std::uint32_t uint32
Definition: Define.h:107
uint32 FlagCaptures
Definition: BattlegroundWS.h:215
uint32 FlagReturns
Definition: BattlegroundWS.h:216

References FlagCaptures, and FlagReturns.

◆ GetAttr1()

uint32 BattlegroundWGScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

212{ return FlagCaptures; }

References FlagCaptures.

◆ GetAttr2()

uint32 BattlegroundWGScore::GetAttr2 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

213{ return FlagReturns; }

References FlagReturns.

◆ UpdateScore()

void BattlegroundWGScore::UpdateScore ( uint32  type,
uint32  value 
)
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

195 {
196 switch (type)
197 {
198 case SCORE_FLAG_CAPTURES: // Flags captured
199 FlagCaptures += value;
200 break;
201 case SCORE_FLAG_RETURNS: // Flags returned
202 FlagReturns += value;
203 break;
204 default:
206 break;
207 }
208 }
@ SCORE_FLAG_CAPTURES
Definition: BattlegroundScore.h:37
@ SCORE_FLAG_RETURNS
Definition: BattlegroundScore.h:38
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:67

References FlagCaptures, FlagReturns, SCORE_FLAG_CAPTURES, SCORE_FLAG_RETURNS, and BattlegroundScore::UpdateScore().

Friends And Related Function Documentation

◆ BattlegroundWS

friend class BattlegroundWS
friend

Member Data Documentation

◆ FlagCaptures

uint32 BattlegroundWGScore::FlagCaptures = 0
protected

◆ FlagReturns

uint32 BattlegroundWGScore::FlagReturns = 0
protected