OpenClonk
C4RoundResult Class Reference

#include <C4InfoCore.h>

Collaboration diagram for C4RoundResult:
[legend]

Public Member Functions

void Default ()
 
void CompileFunc (StdCompiler *pComp)
 

Public Attributes

StdCopyStrBuf Title
 
uint32_t Date = 0
 
int32_t Duration = 0
 
int32_t Won = 0
 
int32_t Score = 0
 
int32_t FinalScore = 0
 
int32_t TotalScore = 0
 
int32_t Bonus = 0
 
int32_t Level = 0
 

Detailed Description

Definition at line 64 of file C4InfoCore.h.

Member Function Documentation

◆ CompileFunc()

void C4RoundResult::CompileFunc ( StdCompiler pComp)

Definition at line 423 of file C4InfoCore.cpp.

424 {
425  pComp->Value(mkNamingAdapt(Title, "Title", ""));
426  pComp->Value(mkNamingAdapt(Date, "Date", 0u));
427  pComp->Value(mkNamingAdapt(Duration, "Duration", 0));
428  pComp->Value(mkNamingAdapt(Won, "Won", 0));
429  pComp->Value(mkNamingAdapt(Score, "Score", 0));
430  pComp->Value(mkNamingAdapt(FinalScore, "FinalScore", 0));
431  pComp->Value(mkNamingAdapt(TotalScore, "TotalScore", 0));
432  pComp->Value(mkNamingAdapt(Bonus, "Bonus", 0));
433  pComp->Value(mkNamingAdapt(Level, "Level", 0));
434 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
uint32_t Date
Definition: C4InfoCore.h:68
int32_t Bonus
Definition: C4InfoCore.h:72
int32_t Duration
Definition: C4InfoCore.h:69
int32_t FinalScore
Definition: C4InfoCore.h:71
int32_t TotalScore
Definition: C4InfoCore.h:71
int32_t Level
Definition: C4InfoCore.h:73
int32_t Score
Definition: C4InfoCore.h:71
int32_t Won
Definition: C4InfoCore.h:70
StdCopyStrBuf Title
Definition: C4InfoCore.h:67
void Value(const T &rStruct)
Definition: StdCompiler.h:161

References Bonus, Date, Duration, FinalScore, Level, mkNamingAdapt(), Score, Title, TotalScore, StdCompiler::Value(), and Won.

Here is the call graph for this function:

◆ Default()

void C4RoundResult::Default ( )

Definition at line 418 of file C4InfoCore.cpp.

419 {
420  InplaceReconstruct(this);
421 }
std::enable_if< std::is_nothrow_default_constructible< T >::value >::type InplaceReconstruct(T *obj)
Definition: Standard.h:35

References InplaceReconstruct().

Referenced by C4PlayerInfoCore::Default().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ Bonus

int32_t C4RoundResult::Bonus = 0

Definition at line 72 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().

◆ Date

uint32_t C4RoundResult::Date = 0

Definition at line 68 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().

◆ Duration

int32_t C4RoundResult::Duration = 0

Definition at line 69 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().

◆ FinalScore

int32_t C4RoundResult::FinalScore = 0

◆ Level

int32_t C4RoundResult::Level = 0

Definition at line 73 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().

◆ Score

int32_t C4RoundResult::Score = 0

Definition at line 71 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().

◆ Title

StdCopyStrBuf C4RoundResult::Title

Definition at line 67 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().

◆ TotalScore

int32_t C4RoundResult::TotalScore = 0

Definition at line 71 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().

◆ Won

int32_t C4RoundResult::Won = 0

Definition at line 70 of file C4InfoCore.h.

Referenced by CompileFunc(), and C4Player::Evaluate().


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