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

#include "BattlegroundIC.h"

Inheritance diagram for BattlegroundICScore:
BattlegroundScore

Protected Member Functions

 BattlegroundICScore (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 BattlegroundIC
 

Detailed Description

Constructor & Destructor Documentation

◆ BattlegroundICScore()

BattlegroundICScore::BattlegroundICScore ( ObjectGuid  playerGuid)
inlineprotected
924: BattlegroundScore(playerGuid) { }
Definition: BattlegroundScore.h:58

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundICScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

31{
32 data << uint32(2); // Objectives Count
33 data << uint32(BasesAssaulted);
34 data << uint32(BasesDefended);
35}
std::uint32_t uint32
Definition: Define.h:107
uint32 BasesAssaulted
Definition: BattlegroundIC.h:947
uint32 BasesDefended
Definition: BattlegroundIC.h:948

References BasesAssaulted, and BasesDefended.

◆ GetAttr1()

uint32 BattlegroundICScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

944{ return BasesAssaulted; }

References BasesAssaulted.

◆ GetAttr2()

uint32 BattlegroundICScore::GetAttr2 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

945{ return BasesDefended; }

References BasesDefended.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

927 {
928 switch (type)
929 {
931 BasesAssaulted += value;
932 break;
934 BasesDefended += value;
935 break;
936 default:
938 break;
939 }
940 }
@ SCORE_BASES_ASSAULTED
Definition: BattlegroundScore.h:40
@ SCORE_BASES_DEFENDED
Definition: BattlegroundScore.h:41
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:66

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

Friends And Related Function Documentation

◆ BattlegroundIC

friend class BattlegroundIC
friend

Member Data Documentation

◆ BasesAssaulted

uint32 BattlegroundICScore::BasesAssaulted = 0
protected

◆ BasesDefended

uint32 BattlegroundICScore::BasesDefended = 0
protected