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 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 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
863: BattlegroundScore(playerGuid) { }
Definition BattlegroundScore.h:58

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundICScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

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

References BasesAssaulted, and BasesDefended.

◆ GetAttr1()

uint32 BattlegroundICScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

883{ return BasesAssaulted; }

References BasesAssaulted.

◆ GetAttr2()

uint32 BattlegroundICScore::GetAttr2 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

884{ return BasesDefended; }

References BasesDefended.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

866 {
867 switch (type)
868 {
870 BasesAssaulted += value;
871 break;
873 BasesDefended += value;
874 break;
875 default:
877 break;
878 }
879 }
@ 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 Symbol Documentation

◆ BattlegroundIC

friend class BattlegroundIC
friend

Member Data Documentation

◆ BasesAssaulted

uint32 BattlegroundICScore::BasesAssaulted = 0
protected

◆ BasesDefended

uint32 BattlegroundICScore::BasesDefended = 0
protected

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