#include <C4RoundResults.h>
Definition at line 32 of file C4RoundResults.h.
◆ C4RoundResultsPlayer() [1/2]
C4RoundResultsPlayer::C4RoundResultsPlayer |
( |
| ) |
|
|
inline |
◆ C4RoundResultsPlayer() [2/2]
◆ AddCustomEvaluationString()
void C4RoundResultsPlayer::AddCustomEvaluationString |
( |
const char * |
szCustomString | ) |
|
◆ CompileFunc()
void C4RoundResultsPlayer::CompileFunc |
( |
StdCompiler * |
pComp | ) |
|
Definition at line 30 of file C4RoundResults.cpp.
45 {
"", RRPLS_Unknown },
46 {
"Lost", RRPLS_Lost },
49 pComp->
Value(
mkNamingAdapt(mkEnumAdaptT<uint8_t>(eLeagueStatus, LeagueStatusEntries),
"Status", RRPLS_Unknown));
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
void Value(const T &rStruct)
References mkNamingAdapt(), and StdCompiler::Value().
◆ EvaluateLeague()
Definition at line 82 of file C4RoundResults.cpp.
84 assert(pLeaguePlayerInfo);
87 iLeagueScoreNew = pLeaguePlayerInfo->iLeagueScoreNew;
88 iLeagueScoreGain = pLeaguePlayerInfo->iLeagueScoreGain;
89 iLeagueRankNew = pLeaguePlayerInfo->iLeagueRankNew;
90 iLeagueRankSymbolNew = pLeaguePlayerInfo->iLeagueRankSymbolNew;
91 sLeagueProgressData =pLeaguePlayerInfo->sLeagueProgressData;
Referenced by C4RoundResults::EvaluateLeague().
◆ EvaluatePlayer()
void C4RoundResultsPlayer::EvaluatePlayer |
( |
C4Player * |
pPlr | ) |
|
Definition at line 52 of file C4RoundResults.cpp.
void Draw(C4Facet &cgo, bool fAspect=true, int32_t iPhaseX=0, int32_t iPhaseY=0, bool fTransparent=true)
bool Create(int iWdt, int iHgt, int iWdt2=C4FCT_Full, int iHgt2=C4FCT_Full)
class C4PlayerInfo * GetInfo()
const char * GetLeagueProgressData() const
References C4Player::BigIcon, C4FacetSurface::Clear(), StdStrBuf::Copy(), C4FacetSurface::Create(), C4Facet::Draw(), C4Player::Evaluated, C4RoundResult::FinalScore, C4Player::GetInfo(), C4PlayerInfo::GetLeagueProgressData(), C4Facet::Hgt, C4PlayerInfoCore::LastRound, C4Facet::Surface, C4PlayerInfoCore::TotalPlayingTime, C4PlayerInfoCore::TotalScore, and C4Facet::Wdt.
Referenced by C4RoundResults::EvaluatePlayer().
◆ GetBigIcon()
C4Facet& C4RoundResultsPlayer::GetBigIcon |
( |
| ) |
|
|
inline |
◆ GetCustomEvaluationStrings()
const char* C4RoundResultsPlayer::GetCustomEvaluationStrings |
( |
| ) |
|
|
inline |
◆ GetID()
int32_t C4RoundResultsPlayer::GetID |
( |
| ) |
const |
|
inline |
◆ GetLeaguePerformance()
int32_t C4RoundResultsPlayer::GetLeaguePerformance |
( |
| ) |
const |
|
inline |
◆ GetLeagueRankNew()
int32_t C4RoundResultsPlayer::GetLeagueRankNew |
( |
| ) |
const |
|
inline |
◆ GetLeagueRankSymbolNew()
int32_t C4RoundResultsPlayer::GetLeagueRankSymbolNew |
( |
| ) |
const |
|
inline |
◆ GetLeagueScoreGain()
int32_t C4RoundResultsPlayer::GetLeagueScoreGain |
( |
| ) |
const |
|
inline |
◆ GetLeagueScoreNew()
int32_t C4RoundResultsPlayer::GetLeagueScoreNew |
( |
| ) |
const |
|
inline |
◆ GetScoreNew()
int32_t C4RoundResultsPlayer::GetScoreNew |
( |
| ) |
const |
|
inline |
◆ GetScoreOld()
int32_t C4RoundResultsPlayer::GetScoreOld |
( |
| ) |
const |
|
inline |
◆ GetTotalPlayingTime()
uint32_t C4RoundResultsPlayer::GetTotalPlayingTime |
( |
| ) |
const |
|
inline |
◆ IsLeagueScoreNewValid()
bool C4RoundResultsPlayer::IsLeagueScoreNewValid |
( |
| ) |
const |
|
inline |
◆ IsScoreNewValid()
bool C4RoundResultsPlayer::IsScoreNewValid |
( |
| ) |
const |
|
inline |
◆ IsScoreOldValid()
bool C4RoundResultsPlayer::IsScoreOldValid |
( |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 117 of file C4RoundResults.cpp.
119 if (
this == &cpy)
return *
this;
122 iTotalPlayingTime = cpy.iTotalPlayingTime;
123 iScoreOld = cpy.iScoreOld;
124 iScoreNew = cpy.iScoreNew;
125 sCustomEvaluationStrings = cpy.sCustomEvaluationStrings;
126 iLeagueScoreNew = cpy.iLeagueScoreNew;
127 iLeagueScoreGain = cpy.iLeagueScoreGain;
128 iLeagueRankNew = cpy.iLeagueRankNew;
129 iLeagueRankSymbolNew = cpy.iLeagueRankSymbolNew;
130 eLeagueStatus = cpy.eLeagueStatus;
131 sLeagueProgressData = cpy.sLeagueProgressData;
◆ operator==()
Definition at line 100 of file C4RoundResults.cpp.
103 if (
id != cmp.id)
return false;
104 if (iTotalPlayingTime != cmp.iTotalPlayingTime)
return false;
105 if (iScoreOld != cmp.iScoreOld)
return false;
106 if (iScoreNew != cmp.iScoreNew)
return false;
107 if (sCustomEvaluationStrings != cmp.sCustomEvaluationStrings)
return false;
108 if (iLeagueScoreNew != cmp.iLeagueScoreNew)
return false;
109 if (iLeagueScoreGain != cmp.iLeagueScoreGain)
return false;
110 if (iLeagueRankNew != cmp.iLeagueRankNew)
return false;
111 if (iLeagueRankSymbolNew != cmp.iLeagueRankSymbolNew)
return false;
112 if (eLeagueStatus != cmp.eLeagueStatus)
return false;
113 if (sLeagueProgressData != cmp.sLeagueProgressData)
return false;
◆ SetID()
void C4RoundResultsPlayer::SetID |
( |
int32_t |
idNew | ) |
|
|
inline |
◆ SetLeaguePerformance()
void C4RoundResultsPlayer::SetLeaguePerformance |
( |
int32_t |
iNewPerf | ) |
|
|
inline |
The documentation for this class was generated from the following files: