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

#include <BattlegroundSA.h>

Protected Member Functions

 BattlegroundSAScore (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 DemolishersDestroyed
 
uint32 GatesDestroyed
 
- Protected Attributes inherited from BattlegroundScore
ObjectGuid PlayerGuid
 
uint8 TeamId
 
uint32 KillingBlows
 
uint32 Deaths
 
uint32 HonorableKills
 
uint32 BonusHonor
 
uint32 DamageDone
 
uint32 HealingDone
 

Friends

class BattlegroundSA
 

Constructor & Destructor Documentation

BattlegroundSAScore::BattlegroundSAScore ( ObjectGuid  playerGuid,
uint32  team 
)
inlineprotected
516 : BattlegroundScore(playerGuid, team), DemolishersDestroyed(0), GatesDestroyed(0) { }
BattlegroundScore(ObjectGuid playerGuid, uint32 team)
Definition: BattlegroundScore.h:60
uint32 GatesDestroyed
Definition: BattlegroundSA.h:544
uint32 DemolishersDestroyed
Definition: BattlegroundSA.h:543

Member Function Documentation

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

Implements BattlegroundScore.

535  {
536  stats.push_back(DemolishersDestroyed);
537  stats.push_back(GatesDestroyed);
538  }
uint32 GatesDestroyed
Definition: BattlegroundSA.h:544
uint32 DemolishersDestroyed
Definition: BattlegroundSA.h:543
uint32 BattlegroundSAScore::GetAttr1 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

540 { return DemolishersDestroyed; }
uint32 DemolishersDestroyed
Definition: BattlegroundSA.h:543
uint32 BattlegroundSAScore::GetAttr2 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

541 { return GatesDestroyed; }
uint32 GatesDestroyed
Definition: BattlegroundSA.h:544
void BattlegroundSAScore::UpdateScore ( uint32  type,
uint32  value 
)
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

519  {
520  switch (type)
521  {
524  break;
527  break;
528  default:
530  break;
531  }
532  }
Definition: BattlegroundScore.h:51
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:65
Definition: BattlegroundScore.h:50
const FieldDescriptor value
Definition: descriptor.h:1522
uint32 GatesDestroyed
Definition: BattlegroundSA.h:544
uint32 DemolishersDestroyed
Definition: BattlegroundSA.h:543

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class BattlegroundSA
friend

Member Data Documentation

uint32 BattlegroundSAScore::DemolishersDestroyed
protected
uint32 BattlegroundSAScore::GatesDestroyed
protected

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