TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ArenaScore Struct Reference

#include <ArenaScore.h>

Protected Member Functions

 ArenaScore (ObjectGuid playerGuid, uint32 team)
 
void BuildObjectivesBlock (std::vector< int32 > &) override
 
std::string ToString () const override
 
- Protected Member Functions inherited from BattlegroundScore
 BattlegroundScore (ObjectGuid playerGuid, uint32 team)
 
virtual ~BattlegroundScore ()
 
virtual void UpdateScore (uint32 type, uint32 value)
 
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

uint8 TeamId
 
- Protected Attributes inherited from BattlegroundScore
ObjectGuid PlayerGuid
 
uint8 TeamId
 
uint32 KillingBlows
 
uint32 Deaths
 
uint32 HonorableKills
 
uint32 BonusHonor
 
uint32 DamageDone
 
uint32 HealingDone
 

Friends

class Arena
 

Constructor & Destructor Documentation

ArenaScore::ArenaScore ( ObjectGuid  playerGuid,
uint32  team 
)
inlineprotected
31 : BattlegroundScore(playerGuid, team), TeamId(team == ALLIANCE ? BG_TEAM_ALLIANCE : BG_TEAM_HORDE) { }
uint8 TeamId
Definition: ArenaScore.h:43
Definition: SharedDefines.h:1000
BattlegroundScore(ObjectGuid playerGuid, uint32 team)
Definition: BattlegroundScore.h:60
Definition: SharedDefines.h:4551
Definition: SharedDefines.h:4550

Member Function Documentation

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

Implements BattlegroundScore.

33 { }
std::string ArenaScore::ToString ( ) const
inlineoverrideprotectedvirtual

Reimplemented from BattlegroundScore.

37  {
38  std::ostringstream stream;
39  stream << "Damage done: " << DamageDone << ", Healing done: " << HealingDone << ", Killing blows: " << KillingBlows;
40  return stream.str();
41  }
uint32 HealingDone
Definition: BattlegroundScore.h:120
uint32 DamageDone
Definition: BattlegroundScore.h:119
uint32 KillingBlows
Definition: BattlegroundScore.h:115

Friends And Related Function Documentation

friend class Arena
friend

Member Data Documentation

uint8 ArenaScore::TeamId
protected

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