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

#include "BattlegroundAV.h"

Inheritance diagram for BattlegroundAVScore:
BattlegroundScore

Protected Member Functions

 BattlegroundAVScore (ObjectGuid playerGuid)
 
void UpdateScore (uint32 type, uint32 value) override
 
void BuildObjectivesBlock (WorldPacket &data) final
 
uint32 GetAttr1 () const final
 
uint32 GetAttr2 () const final
 
uint32 GetAttr3 () const final
 
uint32 GetAttr4 () const final
 
uint32 GetAttr5 () const final
 
- 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 GraveyardsAssaulted = 0
 
uint32 GraveyardsDefended = 0
 
uint32 TowersAssaulted = 0
 
uint32 TowersDefended = 0
 
uint32 MinesCaptured = 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 BattlegroundAV
 

Detailed Description

Constructor & Destructor Documentation

◆ BattlegroundAVScore()

BattlegroundAVScore::BattlegroundAVScore ( ObjectGuid  playerGuid)
inlineexplicitprotected
1830: BattlegroundScore(playerGuid) { }
Definition: BattlegroundScore.h:58

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundAVScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

30{
31 data << uint32(5); // Objectives Count
34 data << uint32(TowersAssaulted);
35 data << uint32(TowersDefended);
36 data << uint32(MinesCaptured);
37}
std::uint32_t uint32
Definition: Define.h:107
uint32 MinesCaptured
Definition: BattlegroundAV.h:1863
uint32 GraveyardsAssaulted
Definition: BattlegroundAV.h:1859
uint32 TowersAssaulted
Definition: BattlegroundAV.h:1861
uint32 GraveyardsDefended
Definition: BattlegroundAV.h:1860
uint32 TowersDefended
Definition: BattlegroundAV.h:1862

References GraveyardsAssaulted, GraveyardsDefended, MinesCaptured, TowersAssaulted, and TowersDefended.

◆ GetAttr1()

uint32 BattlegroundAVScore::GetAttr1 ( ) const
inlinefinalprotectedvirtual

Reimplemented from BattlegroundScore.

1867{ return GraveyardsAssaulted; }

References GraveyardsAssaulted.

◆ GetAttr2()

uint32 BattlegroundAVScore::GetAttr2 ( ) const
inlinefinalprotectedvirtual

Reimplemented from BattlegroundScore.

1868{ return GraveyardsDefended; }

References GraveyardsDefended.

◆ GetAttr3()

uint32 BattlegroundAVScore::GetAttr3 ( ) const
inlinefinalprotectedvirtual

Reimplemented from BattlegroundScore.

1869{ return TowersAssaulted; }

References TowersAssaulted.

◆ GetAttr4()

uint32 BattlegroundAVScore::GetAttr4 ( ) const
inlinefinalprotectedvirtual

Reimplemented from BattlegroundScore.

1870{ return TowersDefended; }

References TowersDefended.

◆ GetAttr5()

uint32 BattlegroundAVScore::GetAttr5 ( ) const
inlinefinalprotectedvirtual

Reimplemented from BattlegroundScore.

1871{ return MinesCaptured; }

References MinesCaptured.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

1833 {
1834 switch (type)
1835 {
1837 GraveyardsAssaulted += value;
1838 break;
1840 GraveyardsDefended += value;
1841 break;
1843 TowersAssaulted += value;
1844 break;
1846 TowersDefended += value;
1847 break;
1849 MinesCaptured += value;
1850 break;
1851 default:
1852 BattlegroundScore::UpdateScore(type, value);
1853 break;
1854 }
1855 }
@ SCORE_GRAVEYARDS_ASSAULTED
Definition: BattlegroundScore.h:44
@ SCORE_TOWERS_DEFENDED
Definition: BattlegroundScore.h:47
@ SCORE_TOWERS_ASSAULTED
Definition: BattlegroundScore.h:46
@ SCORE_MINES_CAPTURED
Definition: BattlegroundScore.h:48
@ SCORE_GRAVEYARDS_DEFENDED
Definition: BattlegroundScore.h:45
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:66

References GraveyardsAssaulted, GraveyardsDefended, MinesCaptured, SCORE_GRAVEYARDS_ASSAULTED, SCORE_GRAVEYARDS_DEFENDED, SCORE_MINES_CAPTURED, SCORE_TOWERS_ASSAULTED, SCORE_TOWERS_DEFENDED, TowersAssaulted, TowersDefended, and BattlegroundScore::UpdateScore().

Friends And Related Function Documentation

◆ BattlegroundAV

friend class BattlegroundAV
friend

Member Data Documentation

◆ GraveyardsAssaulted

uint32 BattlegroundAVScore::GraveyardsAssaulted = 0
protected

◆ GraveyardsDefended

uint32 BattlegroundAVScore::GraveyardsDefended = 0
protected

◆ MinesCaptured

uint32 BattlegroundAVScore::MinesCaptured = 0
protected

◆ TowersAssaulted

uint32 BattlegroundAVScore::TowersAssaulted = 0
protected

◆ TowersDefended

uint32 BattlegroundAVScore::TowersDefended = 0
protected