TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BattlegroundScore Struct Referenceabstract

#include <BattlegroundScore.h>

Protected Member Functions

 BattlegroundScore (ObjectGuid playerGuid, uint32 team)
 
virtual ~BattlegroundScore ()
 
virtual void UpdateScore (uint32 type, uint32 value)
 
virtual void BuildObjectivesBlock (std::vector< int32 > &)=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

ObjectGuid PlayerGuid
 
uint8 TeamId
 
uint32 KillingBlows
 
uint32 Deaths
 
uint32 HonorableKills
 
uint32 BonusHonor
 
uint32 DamageDone
 
uint32 HealingDone
 

Friends

class Arena
 
class Battleground
 

Constructor & Destructor Documentation

BattlegroundScore::BattlegroundScore ( ObjectGuid  playerGuid,
uint32  team 
)
inlineprotected
60  : PlayerGuid(playerGuid), TeamId(team == ALLIANCE ? 1 : 0),
uint8 TeamId
Definition: BattlegroundScore.h:112
uint32 HealingDone
Definition: BattlegroundScore.h:120
uint32 HonorableKills
Definition: BattlegroundScore.h:117
uint32 DamageDone
Definition: BattlegroundScore.h:119
uint32 BonusHonor
Definition: BattlegroundScore.h:118
uint32 Deaths
Definition: BattlegroundScore.h:116
Definition: SharedDefines.h:1000
uint32 KillingBlows
Definition: BattlegroundScore.h:115
ObjectGuid PlayerGuid
Definition: BattlegroundScore.h:111
virtual BattlegroundScore::~BattlegroundScore ( )
inlineprotectedvirtual
63 { }

Member Function Documentation

virtual void BattlegroundScore::BuildObjectivesBlock ( std::vector< int32 > &  )
protectedpure virtual
virtual uint32 BattlegroundScore::GetAttr1 ( ) const
inlineprotectedvirtual
virtual uint32 BattlegroundScore::GetAttr2 ( ) const
inlineprotectedvirtual
virtual uint32 BattlegroundScore::GetAttr3 ( ) const
inlineprotectedvirtual

Reimplemented in BattlegroundAVScore.

107 { return 0; }
virtual uint32 BattlegroundScore::GetAttr4 ( ) const
inlineprotectedvirtual

Reimplemented in BattlegroundAVScore.

108 { return 0; }
virtual uint32 BattlegroundScore::GetAttr5 ( ) const
inlineprotectedvirtual

Reimplemented in BattlegroundAVScore.

109 { return 0; }
uint32 BattlegroundScore::GetBonusHonor ( ) const
inlineprotected
101 { return BonusHonor; }
uint32 BonusHonor
Definition: BattlegroundScore.h:118
uint32 BattlegroundScore::GetDamageDone ( ) const
inlineprotected
102 { return DamageDone; }
uint32 DamageDone
Definition: BattlegroundScore.h:119
uint32 BattlegroundScore::GetDeaths ( ) const
inlineprotected
99 { return Deaths; }
uint32 Deaths
Definition: BattlegroundScore.h:116
uint32 BattlegroundScore::GetHealingDone ( ) const
inlineprotected
103 { return HealingDone; }
uint32 HealingDone
Definition: BattlegroundScore.h:120
uint32 BattlegroundScore::GetHonorableKills ( ) const
inlineprotected
100 { return HonorableKills; }
uint32 HonorableKills
Definition: BattlegroundScore.h:117
uint32 BattlegroundScore::GetKillingBlows ( ) const
inlineprotected
98 { return KillingBlows; }
uint32 KillingBlows
Definition: BattlegroundScore.h:115
virtual std::string BattlegroundScore::ToString ( ) const
inlineprotectedvirtual

Reimplemented in ArenaScore.

96 { return ""; }
virtual void BattlegroundScore::UpdateScore ( uint32  type,
uint32  value 
)
inlineprotectedvirtual

Reimplemented in BattlegroundAVScore, BattlegroundICScore, BattlegroundSAScore, BattlegroundEYScore, BattlegroundABScore, BattlegroundWGScore, BattlegroundBFGScore, and BattlegroundTPScore.

66  {
67  switch (type)
68  {
69  case SCORE_KILLING_BLOWS: // Killing blows
71  break;
72  case SCORE_DEATHS: // Deaths
73  Deaths += value;
74  break;
75  case SCORE_HONORABLE_KILLS: // Honorable kills
77  break;
78  case SCORE_BONUS_HONOR: // Honor bonus
79  BonusHonor += value;
80  break;
81  case SCORE_DAMAGE_DONE: // Damage Done
82  DamageDone += value;
83  break;
84  case SCORE_HEALING_DONE: // Healing Done
85  HealingDone += value;
86  break;
87  default:
88  ASSERT(false && "Not implemented Battleground score type!");
89  break;
90  }
91  }
uint32 HealingDone
Definition: BattlegroundScore.h:120
uint32 HonorableKills
Definition: BattlegroundScore.h:117
uint32 DamageDone
Definition: BattlegroundScore.h:119
uint32 BonusHonor
Definition: BattlegroundScore.h:118
uint32 Deaths
Definition: BattlegroundScore.h:116
Definition: BattlegroundScore.h:29
uint32 KillingBlows
Definition: BattlegroundScore.h:115
Definition: BattlegroundScore.h:31
Definition: BattlegroundScore.h:27
Definition: BattlegroundScore.h:30
#define ASSERT
Definition: Errors.h:55
const FieldDescriptor value
Definition: descriptor.h:1522
Definition: BattlegroundScore.h:28
Definition: BattlegroundScore.h:32

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class Arena
friend
friend class Battleground
friend

Member Data Documentation

uint32 BattlegroundScore::BonusHonor
protected
uint32 BattlegroundScore::DamageDone
protected
uint32 BattlegroundScore::Deaths
protected
uint32 BattlegroundScore::HealingDone
protected
uint32 BattlegroundScore::HonorableKills
protected
uint32 BattlegroundScore::KillingBlows
protected
ObjectGuid BattlegroundScore::PlayerGuid
protected
uint8 BattlegroundScore::TeamId
protected

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