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

#include <BattlegroundWS.h>

Protected Member Functions

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

Friends

class BattlegroundWS
 

Constructor & Destructor Documentation

BattlegroundWGScore::BattlegroundWGScore ( ObjectGuid  playerGuid,
uint32  team 
)
inlineprotected
155 : BattlegroundScore(playerGuid, team), FlagCaptures(0), FlagReturns(0) { }
uint32 FlagCaptures
Definition: BattlegroundWS.h:182
BattlegroundScore(ObjectGuid playerGuid, uint32 team)
Definition: BattlegroundScore.h:60
uint32 FlagReturns
Definition: BattlegroundWS.h:183

Member Function Documentation

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

Implements BattlegroundScore.

174  {
175  stats.push_back(FlagCaptures);
176  stats.push_back(FlagReturns);
177  }
uint32 FlagCaptures
Definition: BattlegroundWS.h:182
uint32 FlagReturns
Definition: BattlegroundWS.h:183
uint32 BattlegroundWGScore::GetAttr1 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

179 { return FlagCaptures; }
uint32 FlagCaptures
Definition: BattlegroundWS.h:182
uint32 BattlegroundWGScore::GetAttr2 ( ) const
inlinefinaloverrideprotectedvirtual

Reimplemented from BattlegroundScore.

180 { return FlagReturns; }
uint32 FlagReturns
Definition: BattlegroundWS.h:183
void BattlegroundWGScore::UpdateScore ( uint32  type,
uint32  value 
)
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

158  {
159  switch (type)
160  {
161  case SCORE_FLAG_CAPTURES: // Flags captured
162  FlagCaptures += value;
163  break;
164  case SCORE_FLAG_RETURNS: // Flags returned
165  FlagReturns += value;
166  break;
167  default:
169  break;
170  }
171  }
Definition: BattlegroundScore.h:35
uint32 FlagCaptures
Definition: BattlegroundWS.h:182
virtual void UpdateScore(uint32 type, uint32 value)
Definition: BattlegroundScore.h:65
Definition: BattlegroundScore.h:36
uint32 FlagReturns
Definition: BattlegroundWS.h:183
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class BattlegroundWS
friend

Member Data Documentation

uint32 BattlegroundWGScore::FlagCaptures
protected
uint32 BattlegroundWGScore::FlagReturns
protected

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