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 AppendToPacket (WorldPacket &data)
 
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 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
399: BattlegroundScore(playerGuid) { }
Definition BattlegroundScore.h:58

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundSAScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

34{
35 data << uint32(2); // Objectives Count
37 data << uint32(GatesDestroyed);
38}
std::uint32_t uint32
Definition Define.h:107
uint32 DemolishersDestroyed
Definition BattlegroundSA.h:422
uint32 GatesDestroyed
Definition BattlegroundSA.h:423

References DemolishersDestroyed, and GatesDestroyed.

◆ GetAttr1()

uint32 BattlegroundSAScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

419{ return DemolishersDestroyed; }

References DemolishersDestroyed.

◆ GetAttr2()

uint32 BattlegroundSAScore::GetAttr2 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

420{ return GatesDestroyed; }

References GatesDestroyed.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

402 {
403 switch (type)
404 {
406 DemolishersDestroyed += value;
407 break;
409 GatesDestroyed += value;
410 break;
411 default:
413 break;
414 }
415 }
@ SCORE_DESTROYED_WALL
Definition BattlegroundScore.h:54
@ SCORE_DESTROYED_DEMOLISHER
Definition BattlegroundScore.h:53
virtual void UpdateScore(uint32 type, uint32 value)
Definition BattlegroundScore.h:66

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

Friends And Related Symbol Documentation

◆ BattlegroundSA

friend class BattlegroundSA
friend

Member Data Documentation

◆ DemolishersDestroyed

uint32 BattlegroundSAScore::DemolishersDestroyed = 0
protected

◆ GatesDestroyed

uint32 BattlegroundSAScore::GatesDestroyed = 0
protected

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