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

#include "BattlegroundEY.h"

Inheritance diagram for BattlegroundEYScore:
BattlegroundScore

Protected Member Functions

 BattlegroundEYScore (ObjectGuid playerGuid)
 
void UpdateScore (uint32 type, uint32 value) override
 
void BuildObjectivesBlock (WorldPacket &data) final
 
uint32 GetAttr1 () 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 FlagCaptures = 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 BattlegroundEY
 

Detailed Description

Constructor & Destructor Documentation

◆ BattlegroundEYScore()

BattlegroundEYScore::BattlegroundEYScore ( ObjectGuid  playerGuid)
inlineprotected
357: BattlegroundScore(playerGuid) { }
Definition: BattlegroundScore.h:59

Member Function Documentation

◆ BuildObjectivesBlock()

void BattlegroundEYScore::BuildObjectivesBlock ( WorldPacket data)
finalprotectedvirtual

Implements BattlegroundScore.

31{
32 data << uint32(1); // Objectives Count
33 data << uint32(FlagCaptures);
34}
std::uint32_t uint32
Definition: Define.h:107
uint32 FlagCaptures
Definition: BattlegroundEY.h:376

References FlagCaptures.

◆ GetAttr1()

uint32 BattlegroundEYScore::GetAttr1 ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

374{ return FlagCaptures; }

References FlagCaptures.

◆ UpdateScore()

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

Reimplemented from BattlegroundScore.

360 {
361 switch (type)
362 {
363 case SCORE_FLAG_CAPTURES: // Flags captured
364 FlagCaptures += value;
365 break;
366 default:
368 break;
369 }
370 }
@ SCORE_FLAG_CAPTURES
Definition: BattlegroundScore.h:37
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:67

References FlagCaptures, SCORE_FLAG_CAPTURES, and BattlegroundScore::UpdateScore().

Friends And Related Function Documentation

◆ BattlegroundEY

friend class BattlegroundEY
friend

Member Data Documentation

◆ FlagCaptures

uint32 BattlegroundEYScore::FlagCaptures = 0
protected