![]() |
TrinityCore
|
#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, uint32 > | PvpStats |
Private Attributes | |
| std::unordered_set< uint32 > const * | _validPvpStatIds |
Definition at line 39 of file BattlegroundScore.h.
| BattlegroundScore::BattlegroundScore | ( | ObjectGuid | playerGuid, |
| uint32 | team, | ||
| std::unordered_set< uint32 > const * | pvpStatIds | ||
| ) |
Definition at line 28 of file BattlegroundScore.cpp.
References _validPvpStatIds, and PvpStats.
|
virtualdefault |
| void BattlegroundScore::BuildPvPLogPlayerDataPacket | ( | WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics & | playerData | ) | const |
Definition at line 92 of file BattlegroundScore.cpp.
References BonusHonor, DamageDone, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::DamageDone, Deaths, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::Faction, HealingDone, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::HealingDone, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::Honor, HonorableKills, KillingBlows, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::Kills, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::MmrChange, PlayerGuid, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::PlayerGUID, PostMatchMMR, PostMatchRating, PreMatchMMR, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::PreMatchMMR, PreMatchRating, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::PreMatchRating, PvpStats, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::RatingChange, WorldPackets::Battleground::PVPMatchStatistics::PVPMatchPlayerStatistics::Stats, and TeamId.
Definition at line 83 of file BattlegroundScore.cpp.
References PvpStats.
|
inline |
Definition at line 53 of file BattlegroundScore.h.
References BonusHonor.
|
inline |
Definition at line 54 of file BattlegroundScore.h.
References DamageDone.
|
inline |
Definition at line 51 of file BattlegroundScore.h.
References Deaths.
Referenced by battleground_silvershard_mines::OnPlayerCapturedMineCart().
|
inline |
Definition at line 55 of file BattlegroundScore.h.
References HealingDone.
|
inline |
Definition at line 52 of file BattlegroundScore.h.
References HonorableKills.
|
inline |
Definition at line 50 of file BattlegroundScore.h.
References KillingBlows.
| std::string BattlegroundScore::ToString | ( | ) | const |
Definition at line 124 of file BattlegroundScore.cpp.
References DamageDone, HealingDone, KillingBlows, PostMatchMMR, PostMatchRating, PreMatchMMR, and PreMatchRating.
Definition at line 67 of file BattlegroundScore.cpp.
References _validPvpStatIds, ObjectAccessor::FindConnectedPlayer(), PlayerGuid, PvpStats, TC_LOG_WARN, and TrackedWorldStateUIModified.
Definition at line 39 of file BattlegroundScore.cpp.
References ABORT_MSG, BonusHonor, DamageDone, Deaths, HealingDone, HonorableKills, KillingBlows, SCORE_BONUS_HONOR, SCORE_DAMAGE_DONE, SCORE_DEATHS, SCORE_HEALING_DONE, SCORE_HONORABLE_KILLS, and SCORE_KILLING_BLOWS.
|
private |
Definition at line 82 of file BattlegroundScore.h.
Referenced by BattlegroundScore(), and UpdatePvpStat().
|
protected |
Definition at line 70 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), GetBonusHonor(), and UpdateScore().
|
protected |
Definition at line 71 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), GetDamageDone(), ToString(), and UpdateScore().
|
protected |
Definition at line 68 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), GetDeaths(), and UpdateScore().
|
protected |
Definition at line 72 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), GetHealingDone(), ToString(), and UpdateScore().
|
protected |
Definition at line 69 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), GetHonorableKills(), and UpdateScore().
|
protected |
Definition at line 67 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), GetKillingBlows(), ToString(), and UpdateScore().
|
protected |
Definition at line 63 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), and UpdatePvpStat().
|
protected |
Definition at line 77 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), and ToString().
|
protected |
Definition at line 76 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), and ToString().
|
protected |
Definition at line 75 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), and ToString().
|
protected |
Definition at line 74 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket(), and ToString().
Definition at line 79 of file BattlegroundScore.h.
Referenced by BattlegroundScore(), BuildPvPLogPlayerDataPacket(), GetAttr(), and UpdatePvpStat().
|
protected |
Definition at line 64 of file BattlegroundScore.h.
Referenced by BuildPvPLogPlayerDataPacket().