OpenClonk
C4SWeather Class Reference

#include <C4Scenario.h>

Collaboration diagram for C4SWeather:
[legend]

Public Member Functions

void Default ()
 
void CompileFunc (StdCompiler *pComp)
 

Public Attributes

C4SVal Climate
 
C4SVal StartSeason
 
C4SVal YearSpeed
 
C4SVal Wind
 
bool NoGamma
 

Detailed Description

Definition at line 196 of file C4Scenario.h.

Member Function Documentation

◆ CompileFunc()

void C4SWeather::CompileFunc ( StdCompiler pComp)

Definition at line 372 of file C4Scenario.cpp.

References C4SVal::C4SVal(), mkNamingAdapt(), and StdCompiler::Value().

373 {
374  pComp->Value(mkNamingAdapt(Climate, "Climate", C4SVal(50,10), true));
375  pComp->Value(mkNamingAdapt(StartSeason, "StartSeason", C4SVal(50,50), true));
376  pComp->Value(mkNamingAdapt(YearSpeed, "YearSpeed", C4SVal(50)));
377  pComp->Value(mkNamingAdapt(Wind, "Wind", C4SVal(0,70,-100,+100), true));
378  pComp->Value(mkNamingAdapt(NoGamma, "NoGamma", true));
379 }
C4SVal Climate
Definition: C4Scenario.h:199
C4SVal StartSeason
Definition: C4Scenario.h:200
C4SVal YearSpeed
Definition: C4Scenario.h:200
C4SVal Wind
Definition: C4Scenario.h:201
bool NoGamma
Definition: C4Scenario.h:202
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
void Value(const T &rStruct)
Definition: StdCompiler.h:161
Here is the call graph for this function:

◆ Default()

void C4SWeather::Default ( )

Definition at line 363 of file C4Scenario.cpp.

364 {
365  Climate.Set(50,10);
366  StartSeason.Set(50,50);
367  YearSpeed.Set(50);
368  Wind.Set(0,70,-100,+100);
369  NoGamma=true;
370 }
C4SVal Climate
Definition: C4Scenario.h:199
C4SVal StartSeason
Definition: C4Scenario.h:200
C4SVal YearSpeed
Definition: C4Scenario.h:200
void Set(int32_t std=0, int32_t rnd=0, int32_t min=0, int32_t max=100)
Definition: C4Scenario.cpp:36
C4SVal Wind
Definition: C4Scenario.h:201
bool NoGamma
Definition: C4Scenario.h:202

Member Data Documentation

◆ Climate

C4SVal C4SWeather::Climate

Definition at line 199 of file C4Scenario.h.

Referenced by C4Weather::Init().

◆ NoGamma

bool C4SWeather::NoGamma

Definition at line 202 of file C4Scenario.h.

Referenced by C4Weather::Init().

◆ StartSeason

C4SVal C4SWeather::StartSeason

Definition at line 200 of file C4Scenario.h.

Referenced by C4Weather::Execute(), and C4Weather::Init().

◆ Wind

C4SVal C4SWeather::Wind

Definition at line 201 of file C4Scenario.h.

Referenced by C4Weather::Execute(), and C4Weather::Init().

◆ YearSpeed

C4SVal C4SWeather::YearSpeed

Definition at line 200 of file C4Scenario.h.

Referenced by C4Weather::Init().


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