TrinityCore
BattlegroundScore Struct Reference

#include <BattlegroundScore.h>

Public Member Functions

 BattlegroundScore (ObjectGuid playerGuid, uint32 team, std::unordered_set< uint32 > const *pvpStatIds)
 
virtual ~BattlegroundScore ()
 
void UpdateScore (uint32 type, uint32 value)
 
void UpdatePvpStat (uint32 pvpStatID, uint32 value)
 
std::string ToString () const
 
uint32 GetKillingBlows () const
 
uint32 GetDeaths () const
 
uint32 GetHonorableKills () const
 
uint32 GetBonusHonor () const
 
uint32 GetDamageDone () const
 
uint32 GetHealingDone () const
 
uint32 GetAttr (uint8 index) const
 
void BuildPvPLogPlayerDataPacket (WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics &playerData) const
 

Protected Attributes

ObjectGuid PlayerGuid
 
uint8 TeamId
 
uint32 KillingBlows
 
uint32 Deaths
 
uint32 HonorableKills
 
uint32 BonusHonor
 
uint32 DamageDone
 
uint32 HealingDone
 
uint32 PreMatchRating
 
uint32 PreMatchMMR
 
uint32 PostMatchRating
 
uint32 PostMatchMMR
 
std::map< uint32, uint32PvpStats
 

Private Attributes

std::unordered_set< uint32 > const * _validPvpStatIds
 

Detailed Description

Definition at line 39 of file BattlegroundScore.h.

Constructor & Destructor Documentation

◆ BattlegroundScore()

BattlegroundScore::BattlegroundScore ( ObjectGuid  playerGuid,
uint32  team,
std::unordered_set< uint32 > const *  pvpStatIds 
)

Definition at line 28 of file BattlegroundScore.cpp.

◆ ~BattlegroundScore()

BattlegroundScore::~BattlegroundScore ( )
virtualdefault

Member Function Documentation

◆ BuildPvPLogPlayerDataPacket()

void BattlegroundScore::BuildPvPLogPlayerDataPacket ( WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics playerData) const

Definition at line 92 of file BattlegroundScore.cpp.

◆ GetAttr()

uint32 BattlegroundScore::GetAttr ( uint8  index) const

Definition at line 83 of file BattlegroundScore.cpp.

◆ GetBonusHonor()

uint32 BattlegroundScore::GetBonusHonor ( ) const
inline

Definition at line 53 of file BattlegroundScore.h.

◆ GetDamageDone()

uint32 BattlegroundScore::GetDamageDone ( ) const
inline

Definition at line 54 of file BattlegroundScore.h.

◆ GetDeaths()

uint32 BattlegroundScore::GetDeaths ( ) const
inline

Definition at line 51 of file BattlegroundScore.h.

◆ GetHealingDone()

uint32 BattlegroundScore::GetHealingDone ( ) const
inline

Definition at line 55 of file BattlegroundScore.h.

◆ GetHonorableKills()

uint32 BattlegroundScore::GetHonorableKills ( ) const
inline

Definition at line 52 of file BattlegroundScore.h.

◆ GetKillingBlows()

uint32 BattlegroundScore::GetKillingBlows ( ) const
inline

Definition at line 50 of file BattlegroundScore.h.

◆ ToString()

std::string BattlegroundScore::ToString ( ) const

Definition at line 124 of file BattlegroundScore.cpp.

◆ UpdatePvpStat()

void BattlegroundScore::UpdatePvpStat ( uint32  pvpStatID,
uint32  value 
)

Definition at line 67 of file BattlegroundScore.cpp.

+ Here is the call graph for this function:

◆ UpdateScore()

void BattlegroundScore::UpdateScore ( uint32  type,
uint32  value 
)

Definition at line 39 of file BattlegroundScore.cpp.

Member Data Documentation

◆ _validPvpStatIds

std::unordered_set<uint32> const* BattlegroundScore::_validPvpStatIds
private

Definition at line 82 of file BattlegroundScore.h.

◆ BonusHonor

uint32 BattlegroundScore::BonusHonor
protected

Definition at line 70 of file BattlegroundScore.h.

◆ DamageDone

uint32 BattlegroundScore::DamageDone
protected

Definition at line 71 of file BattlegroundScore.h.

◆ Deaths

uint32 BattlegroundScore::Deaths
protected

Definition at line 68 of file BattlegroundScore.h.

◆ HealingDone

uint32 BattlegroundScore::HealingDone
protected

Definition at line 72 of file BattlegroundScore.h.

◆ HonorableKills

uint32 BattlegroundScore::HonorableKills
protected

Definition at line 69 of file BattlegroundScore.h.

◆ KillingBlows

uint32 BattlegroundScore::KillingBlows
protected

Definition at line 67 of file BattlegroundScore.h.

◆ PlayerGuid

ObjectGuid BattlegroundScore::PlayerGuid
protected

Definition at line 63 of file BattlegroundScore.h.

◆ PostMatchMMR

uint32 BattlegroundScore::PostMatchMMR
protected

Definition at line 77 of file BattlegroundScore.h.

◆ PostMatchRating

uint32 BattlegroundScore::PostMatchRating
protected

Definition at line 76 of file BattlegroundScore.h.

◆ PreMatchMMR

uint32 BattlegroundScore::PreMatchMMR
protected

Definition at line 75 of file BattlegroundScore.h.

◆ PreMatchRating

uint32 BattlegroundScore::PreMatchRating
protected

Definition at line 74 of file BattlegroundScore.h.

◆ PvpStats

std::map<uint32 , uint32 > BattlegroundScore::PvpStats
protected

Definition at line 79 of file BattlegroundScore.h.

◆ TeamId

uint8 BattlegroundScore::TeamId
protected

Definition at line 64 of file BattlegroundScore.h.


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