TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BattlegroundABScore Struct Referencefinal

#include <BattlegroundAB.h>

Protected Member Functions

 BattlegroundABScore (ObjectGuid playerGuid, uint32 team)
 
void UpdateScore (uint32 type, uint32 value) override
 
void BuildObjectivesBlock (std::vector< int32 > &stats) override
 
uint32 GetAttr1 () const finaloverride
 
uint32 GetAttr2 () const finaloverride
 
- Protected Member Functions inherited from BattlegroundScore
 BattlegroundScore (ObjectGuid playerGuid, uint32 team)
 
virtual ~BattlegroundScore ()
 
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
 
uint32 BasesDefended
 
- Protected Attributes inherited from BattlegroundScore
ObjectGuid PlayerGuid
 
uint8 TeamId
 
uint32 KillingBlows
 
uint32 Deaths
 
uint32 HonorableKills
 
uint32 BonusHonor
 
uint32 DamageDone
 
uint32 HealingDone
 

Friends

class BattlegroundAB
 

Constructor & Destructor Documentation

BattlegroundABScore::BattlegroundABScore ( ObjectGuid  playerGuid,
uint32  team 
)
inlineprotected
245 : BattlegroundScore(playerGuid, team), BasesAssaulted(0), BasesDefended(0) { }
uint32 BasesAssaulted
Definition: BattlegroundAB.h:272
uint32 BasesDefended
Definition: BattlegroundAB.h:273
BattlegroundScore(ObjectGuid playerGuid, uint32 team)
Definition: BattlegroundScore.h:60

Member Function Documentation

void BattlegroundABScore::BuildObjectivesBlock ( std::vector< int32 > &  stats)
inlineoverrideprotectedvirtual

Implements BattlegroundScore.

264  {
265  stats.push_back(BasesAssaulted);
266  stats.push_back(BasesDefended);
267  }
uint32 BasesAssaulted
Definition: BattlegroundAB.h:272
uint32 BasesDefended
Definition: BattlegroundAB.h:273
uint32 BattlegroundABScore::GetAttr1 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

269 { return BasesAssaulted; }
uint32 BasesAssaulted
Definition: BattlegroundAB.h:272
uint32 BattlegroundABScore::GetAttr2 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

270 { return BasesDefended; }
uint32 BasesDefended
Definition: BattlegroundAB.h:273
void BattlegroundABScore::UpdateScore ( uint32  type,
uint32  value 
)
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

248  {
249  switch (type)
250  {
253  break;
255  BasesDefended += value;
256  break;
257  default:
259  break;
260  }
261  }
uint32 BasesAssaulted
Definition: BattlegroundAB.h:272
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:65
uint32 BasesDefended
Definition: BattlegroundAB.h:273
Definition: BattlegroundScore.h:39
const FieldDescriptor value
Definition: descriptor.h:1522
Definition: BattlegroundScore.h:40

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class BattlegroundAB
friend

Member Data Documentation

uint32 BattlegroundABScore::BasesAssaulted
protected
uint32 BattlegroundABScore::BasesDefended
protected

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