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

#include <BattlegroundAV.h>

Protected Member Functions

 BattlegroundAVScore (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
 
uint32 GetAttr3 () const finaloverride
 
uint32 GetAttr4 () const finaloverride
 
uint32 GetAttr5 () 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
 

Protected Attributes

uint32 GraveyardsAssaulted
 
uint32 GraveyardsDefended
 
uint32 TowersAssaulted
 
uint32 TowersDefended
 
uint32 MinesCaptured
 
- Protected Attributes inherited from BattlegroundScore
ObjectGuid PlayerGuid
 
uint8 TeamId
 
uint32 KillingBlows
 
uint32 Deaths
 
uint32 HonorableKills
 
uint32 BonusHonor
 
uint32 DamageDone
 
uint32 HealingDone
 

Friends

class BattlegroundAV
 

Constructor & Destructor Documentation

BattlegroundAVScore::BattlegroundAVScore ( ObjectGuid  playerGuid,
uint32  team 
)
inlineprotected
uint32 TowersDefended
Definition: BattlegroundAV.h:1602
uint32 GraveyardsAssaulted
Definition: BattlegroundAV.h:1599
uint32 MinesCaptured
Definition: BattlegroundAV.h:1603
BattlegroundScore(ObjectGuid playerGuid, uint32 team)
Definition: BattlegroundScore.h:60
uint32 TowersAssaulted
Definition: BattlegroundAV.h:1601
uint32 GraveyardsDefended
Definition: BattlegroundAV.h:1600

Member Function Documentation

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

Implements BattlegroundScore.

1585  {
1586  stats.push_back(GraveyardsAssaulted);
1587  stats.push_back(GraveyardsDefended);
1588  stats.push_back(TowersAssaulted);
1589  stats.push_back(TowersDefended);
1590  stats.push_back(MinesCaptured);
1591  }
uint32 TowersDefended
Definition: BattlegroundAV.h:1602
uint32 GraveyardsAssaulted
Definition: BattlegroundAV.h:1599
uint32 MinesCaptured
Definition: BattlegroundAV.h:1603
uint32 TowersAssaulted
Definition: BattlegroundAV.h:1601
uint32 GraveyardsDefended
Definition: BattlegroundAV.h:1600
uint32 BattlegroundAVScore::GetAttr1 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

1593 { return GraveyardsAssaulted; }
uint32 GraveyardsAssaulted
Definition: BattlegroundAV.h:1599
uint32 BattlegroundAVScore::GetAttr2 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

1594 { return GraveyardsDefended; }
uint32 GraveyardsDefended
Definition: BattlegroundAV.h:1600
uint32 BattlegroundAVScore::GetAttr3 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

1595 { return TowersAssaulted; }
uint32 TowersAssaulted
Definition: BattlegroundAV.h:1601
uint32 BattlegroundAVScore::GetAttr4 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

1596 { return TowersDefended; }
uint32 TowersDefended
Definition: BattlegroundAV.h:1602
uint32 BattlegroundAVScore::GetAttr5 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

1597 { return MinesCaptured; }
uint32 MinesCaptured
Definition: BattlegroundAV.h:1603
void BattlegroundAVScore::UpdateScore ( uint32  type,
uint32  value 
)
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

1560  {
1561  switch (type)
1562  {
1565  break;
1568  break;
1571  break;
1572  case SCORE_TOWERS_DEFENDED:
1573  TowersDefended += value;
1574  break;
1575  case SCORE_MINES_CAPTURED:
1576  MinesCaptured += value;
1577  break;
1578  default:
1580  break;
1581  }
1582  }
uint32 TowersDefended
Definition: BattlegroundAV.h:1602
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:65
Definition: BattlegroundScore.h:46
Definition: BattlegroundScore.h:44
uint32 GraveyardsAssaulted
Definition: BattlegroundAV.h:1599
uint32 MinesCaptured
Definition: BattlegroundAV.h:1603
Definition: BattlegroundScore.h:47
Definition: BattlegroundScore.h:45
uint32 TowersAssaulted
Definition: BattlegroundAV.h:1601
Definition: BattlegroundScore.h:43
const FieldDescriptor value
Definition: descriptor.h:1522
uint32 GraveyardsDefended
Definition: BattlegroundAV.h:1600

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class BattlegroundAV
friend

Member Data Documentation

uint32 BattlegroundAVScore::GraveyardsAssaulted
protected
uint32 BattlegroundAVScore::GraveyardsDefended
protected
uint32 BattlegroundAVScore::MinesCaptured
protected
uint32 BattlegroundAVScore::TowersAssaulted
protected
uint32 BattlegroundAVScore::TowersDefended
protected

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