OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Weather.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 1998-2000, Matthes Bender
5  * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
6  * Copyright (c) 2009-2016, The OpenClonk Team and contributors
7  *
8  * Distributed under the terms of the ISC license; see accompanying file
9  * "COPYING" for details.
10  *
11  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
12  * See accompanying file "TRADEMARK" for details.
13  *
14  * To redistribute this file separately, substitute the full license texts
15  * for the above references.
16  */
17 
18 /* Controls temperature, wind, and natural disasters */
19 
20 #ifndef INC_C4Weather
21 #define INC_C4Weather
22 
23 #include "landscape/C4Landscape.h"
24 class C4Weather
25 {
26 public:
27  C4Weather();
28  ~C4Weather();
29 public:
31  int32_t Wind,TargetWind;
33  int32_t NoGamma;
34 public:
35  void Default();
36  void Clear();
37  void Execute();
38  void SetClimate(int32_t iClimate);
39  void SetSeason(int32_t iSeason);
40  void SetTemperature(int32_t iTemperature);
41  void Init(bool fScenario);
42  void SetWind(int32_t iWind);
43  int32_t GetWind(int32_t x, int32_t y);
44  int32_t GetTemperature();
45  int32_t GetSeason();
46  int32_t GetClimate();
47  void SetSeasonGamma(); // set gamma adjustment for season
48  void CompileFunc(StdCompiler *pComp);
49 };
50 extern C4Weather Weather;
51 
52 #endif
void SetTemperature(int32_t iTemperature)
Definition: C4Weather.cpp:120
int32_t NoGamma
Definition: C4Weather.h:33
void SetSeasonGamma()
Definition: C4Weather.cpp:156
int32_t Wind
Definition: C4Weather.h:31
int32_t TemperatureRange
Definition: C4Weather.h:32
void SetWind(int32_t iWind)
Definition: C4Weather.cpp:114
int32_t GetClimate()
Definition: C4Weather.cpp:143
void Clear()
Definition: C4Weather.cpp:89
int32_t Climate
Definition: C4Weather.h:32
int32_t TargetWind
Definition: C4Weather.h:31
int32_t GetTemperature()
Definition: C4Weather.cpp:100
void Init(bool fScenario)
Definition: C4Weather.cpp:39
int32_t YearSpeed
Definition: C4Weather.h:30
int32_t GetSeason()
Definition: C4Weather.cpp:132
void Execute()
Definition: C4Weather.cpp:58
int32_t Temperature
Definition: C4Weather.h:32
void SetClimate(int32_t iClimate)
Definition: C4Weather.cpp:137
void CompileFunc(StdCompiler *pComp)
Definition: C4Weather.cpp:174
int32_t SeasonDelay
Definition: C4Weather.h:30
void SetSeason(int32_t iSeason)
Definition: C4Weather.cpp:126
int32_t Season
Definition: C4Weather.h:30
void Default()
Definition: C4Weather.cpp:105
int32_t GetWind(int32_t x, int32_t y)
Definition: C4Weather.cpp:94
C4Weather Weather
Definition: C4Weather.cpp:206