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

#include "BattlegroundSA.h"

Inheritance diagram for BattlegroundSAScore:
BattlegroundScore

Protected Member Functions

 BattlegroundSAScore (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 DemolishersDestroyed = 0
 
uint32 GatesDestroyed = 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 BattlegroundSA
 

Detailed Description

Constructor & Destructor Documentation

◆ BattlegroundSAScore()

BattlegroundSAScore::BattlegroundSAScore ( ObjectGuid  playerGuid)
inlineprotected
427: BattlegroundScore(playerGuid) { }
Definition: BattlegroundScore.h:59

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundSAScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

33{
34 data << uint32(2); // Objectives Count
36 data << uint32(GatesDestroyed);
37}
std::uint32_t uint32
Definition: Define.h:108
uint32 DemolishersDestroyed
Definition: BattlegroundSA.h:450
uint32 GatesDestroyed
Definition: BattlegroundSA.h:451

References DemolishersDestroyed, and GatesDestroyed.

◆ GetAttr1()

uint32 BattlegroundSAScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

447{ return DemolishersDestroyed; }

References DemolishersDestroyed.

◆ GetAttr2()

uint32 BattlegroundSAScore::GetAttr2 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

448{ return GatesDestroyed; }

References GatesDestroyed.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

430 {
431 switch (type)
432 {
434 DemolishersDestroyed += value;
435 break;
437 GatesDestroyed += value;
438 break;
439 default:
441 break;
442 }
443 }
@ SCORE_DESTROYED_WALL
Definition: BattlegroundScore.h:55
@ SCORE_DESTROYED_DEMOLISHER
Definition: BattlegroundScore.h:54
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:67

References DemolishersDestroyed, GatesDestroyed, SCORE_DESTROYED_DEMOLISHER, SCORE_DESTROYED_WALL, and BattlegroundScore::UpdateScore().

Friends And Related Function Documentation

◆ BattlegroundSA

friend class BattlegroundSA
friend

Member Data Documentation

◆ DemolishersDestroyed

uint32 BattlegroundSAScore::DemolishersDestroyed = 0
protected

◆ GatesDestroyed

uint32 BattlegroundSAScore::GatesDestroyed = 0
protected