OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 65 of file C4InfoCore.h.

Member Function Documentation

void C4RoundResult::CompileFunc ( StdCompiler pComp)

Definition at line 375 of file C4InfoCore.cpp.

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

376 {
377  pComp->Value(mkNamingAdapt(Title, "Title", ""));
378  pComp->Value(mkNamingAdapt(Date, "Date", 0u));
379  pComp->Value(mkNamingAdapt(Duration, "Duration", 0));
380  pComp->Value(mkNamingAdapt(Won, "Won", 0));
381  pComp->Value(mkNamingAdapt(Score, "Score", 0));
382  pComp->Value(mkNamingAdapt(FinalScore, "FinalScore", 0));
383  pComp->Value(mkNamingAdapt(TotalScore, "TotalScore", 0));
384  pComp->Value(mkNamingAdapt(Bonus, "Bonus", 0));
385  pComp->Value(mkNamingAdapt(Level, "Level", 0));
386 }
int32_t TotalScore
Definition: C4InfoCore.h:72
int32_t Won
Definition: C4InfoCore.h:71
int32_t Score
Definition: C4InfoCore.h:72
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
uint32_t Date
Definition: C4InfoCore.h:69
void Value(const T &rStruct)
Definition: StdCompiler.h:171
int32_t FinalScore
Definition: C4InfoCore.h:72
int32_t Duration
Definition: C4InfoCore.h:70
int32_t Level
Definition: C4InfoCore.h:74
int32_t Bonus
Definition: C4InfoCore.h:73
StdCopyStrBuf Title
Definition: C4InfoCore.h:68

Here is the call graph for this function:

void C4RoundResult::Default ( )

Definition at line 370 of file C4InfoCore.cpp.

References InplaceReconstruct().

Referenced by C4PlayerInfoCore::Default().

371 {
372  InplaceReconstruct(this);
373 }
std::enable_if< std::is_nothrow_default_constructible< T >::value >::type InplaceReconstruct(T *obj)
Definition: Standard.h:35

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int32_t C4RoundResult::Bonus = 0

Definition at line 73 of file C4InfoCore.h.

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

uint32_t C4RoundResult::Date = 0

Definition at line 69 of file C4InfoCore.h.

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

int32_t C4RoundResult::Duration = 0

Definition at line 70 of file C4InfoCore.h.

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

int32_t C4RoundResult::FinalScore = 0
int32_t C4RoundResult::Level = 0

Definition at line 74 of file C4InfoCore.h.

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

int32_t C4RoundResult::Score = 0

Definition at line 72 of file C4InfoCore.h.

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

StdCopyStrBuf C4RoundResult::Title

Definition at line 68 of file C4InfoCore.h.

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

int32_t C4RoundResult::TotalScore = 0

Definition at line 72 of file C4InfoCore.h.

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

int32_t C4RoundResult::Won = 0

Definition at line 71 of file C4InfoCore.h.

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


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