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

Member Function Documentation

void C4SWeather::CompileFunc ( StdCompiler pComp)

Definition at line 370 of file C4Scenario.cpp.

References Climate, mkNamingAdapt(), NoGamma, StartSeason, StdCompiler::Value(), Wind, and YearSpeed.

371 {
372  pComp->Value(mkNamingAdapt(Climate, "Climate", C4SVal(50,10), true));
373  pComp->Value(mkNamingAdapt(StartSeason, "StartSeason", C4SVal(50,50), true));
374  pComp->Value(mkNamingAdapt(YearSpeed, "YearSpeed", C4SVal(50)));
375  pComp->Value(mkNamingAdapt(Wind, "Wind", C4SVal(0,70,-100,+100), true));
376  pComp->Value(mkNamingAdapt(NoGamma, "NoGamma", true));
377 }
C4SVal Climate
Definition: C4Scenario.h:197
C4SVal StartSeason
Definition: C4Scenario.h:198
C4SVal YearSpeed
Definition: C4Scenario.h:198
C4SVal Wind
Definition: C4Scenario.h:199
bool NoGamma
Definition: C4Scenario.h:200
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:

void C4SWeather::Default ( )

Definition at line 361 of file C4Scenario.cpp.

References Climate, NoGamma, C4SVal::Set(), StartSeason, Wind, and YearSpeed.

Referenced by C4Scenario::Default().

362 {
363  Climate.Set(50,10);
364  StartSeason.Set(50,50);
365  YearSpeed.Set(50);
366  Wind.Set(0,70,-100,+100);
367  NoGamma=true;
368 }
C4SVal Climate
Definition: C4Scenario.h:197
C4SVal StartSeason
Definition: C4Scenario.h:198
C4SVal YearSpeed
Definition: C4Scenario.h:198
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:199
bool NoGamma
Definition: C4Scenario.h:200

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

C4SVal C4SWeather::Climate

Definition at line 197 of file C4Scenario.h.

Referenced by CompileFunc(), Default(), and C4Weather::Init().

bool C4SWeather::NoGamma

Definition at line 200 of file C4Scenario.h.

Referenced by CompileFunc(), Default(), and C4Weather::Init().

C4SVal C4SWeather::StartSeason

Definition at line 198 of file C4Scenario.h.

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

C4SVal C4SWeather::Wind

Definition at line 199 of file C4Scenario.h.

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

C4SVal C4SWeather::YearSpeed

Definition at line 198 of file C4Scenario.h.

Referenced by CompileFunc(), Default(), and C4Weather::Init().


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