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

#include "BattlegroundAB.h"

Inheritance diagram for BattlegroundABScore:
BattlegroundScore

Public Member Functions

uint32 GetBasesAssaulted () const
 
uint32 GetBasesDefended () const
 
- Public Member Functions inherited from BattlegroundScore
ObjectGuid GetPlayerGuid () const
 
uint32 GetKillingBlows () const
 
uint32 GetDamageDone () const
 
uint32 GetHealingDone () const
 
uint32 GetDeaths () const
 
uint32 GetHonorableKills () const
 
uint32 GetBonusHonor () const
 

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 AppendToPacket (WorldPacket &data)
 
virtual std::string ToString () 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
225: BattlegroundScore(playerGuid) { }
Definition BattlegroundScore.h:58

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundABScore::BuildObjectivesBlock ( WorldPacket &  data)
finalprotectedvirtual

Implements BattlegroundScore.

30{
31 data << uint32(2);
32 data << uint32(BasesAssaulted);
33 data << uint32(BasesDefended);
34}
std::uint32_t uint32
Definition Define.h:107
uint32 BasesAssaulted
Definition BattlegroundAB.h:248
uint32 BasesDefended
Definition BattlegroundAB.h:249

References BasesAssaulted, and BasesDefended.

◆ GetAttr1()

uint32 BattlegroundABScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

245{ return BasesAssaulted; }

References BasesAssaulted.

◆ GetAttr2()

uint32 BattlegroundABScore::GetAttr2 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

246{ return BasesDefended; }

References BasesDefended.

◆ GetBasesAssaulted()

uint32 BattlegroundABScore::GetBasesAssaulted ( ) const
inline
220{ return BasesAssaulted; }

References BasesAssaulted.

◆ GetBasesDefended()

uint32 BattlegroundABScore::GetBasesDefended ( ) const
inline
221{ return BasesDefended; }

References BasesDefended.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

228 {
229 switch (type)
230 {
232 BasesAssaulted += value;
233 break;
235 BasesDefended += value;
236 break;
237 default:
239 break;
240 }
241 }
@ SCORE_BASES_ASSAULTED
Definition BattlegroundScore.h:40
@ SCORE_BASES_DEFENDED
Definition BattlegroundScore.h:41
virtual void UpdateScore(uint32 type, uint32 value)
Definition BattlegroundScore.h:75

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

Friends And Related Symbol Documentation

◆ BattlegroundAB

friend class BattlegroundAB
friend

Member Data Documentation

◆ BasesAssaulted

uint32 BattlegroundABScore::BasesAssaulted = 0
protected

◆ BasesDefended

uint32 BattlegroundABScore::BasesDefended = 0
protected

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