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

#include "BattlegroundAB.h"

Inheritance diagram for BattlegroundABScore:
BattlegroundScore

Protected Member Functions

 BattlegroundABScore (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 BasesAssaulted = 0
 
uint32 BasesDefended = 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 BattlegroundAB
 

Detailed Description

Constructor & Destructor Documentation

◆ BattlegroundABScore()

BattlegroundABScore::BattlegroundABScore ( ObjectGuid  playerGuid)
inlineexplicitprotected
263: BattlegroundScore(playerGuid) { }
Definition: BattlegroundScore.h:59

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundABScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

29{
30 data << uint32(2);
31 data << uint32(BasesAssaulted);
32 data << uint32(BasesDefended);
33}
std::uint32_t uint32
Definition: Define.h:108
uint32 BasesAssaulted
Definition: BattlegroundAB.h:286
uint32 BasesDefended
Definition: BattlegroundAB.h:287

References BasesAssaulted, and BasesDefended.

◆ GetAttr1()

uint32 BattlegroundABScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

283{ return BasesAssaulted; }

References BasesAssaulted.

◆ GetAttr2()

uint32 BattlegroundABScore::GetAttr2 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

284{ return BasesDefended; }

References BasesDefended.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

266 {
267 switch (type)
268 {
270 BasesAssaulted += value;
271 break;
273 BasesDefended += value;
274 break;
275 default:
277 break;
278 }
279 }
@ SCORE_BASES_ASSAULTED
Definition: BattlegroundScore.h:41
@ SCORE_BASES_DEFENDED
Definition: BattlegroundScore.h:42
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:67

References BasesAssaulted, BasesDefended, SCORE_BASES_ASSAULTED, SCORE_BASES_DEFENDED, and BattlegroundScore::UpdateScore().

Friends And Related Function Documentation

◆ BattlegroundAB

friend class BattlegroundAB
friend

Member Data Documentation

◆ BasesAssaulted

uint32 BattlegroundABScore::BasesAssaulted = 0
protected

◆ BasesDefended

uint32 BattlegroundABScore::BasesDefended = 0
protected