#include <C4Weather.h>
Public Member Functions | |
C4Weather () | |
~C4Weather () | |
void | Default () |
void | Clear () |
void | Execute () |
void | SetClimate (int32_t iClimate) |
void | SetSeason (int32_t iSeason) |
void | SetTemperature (int32_t iTemperature) |
void | Init (bool fScenario) |
void | SetWind (int32_t iWind) |
int32_t | GetWind (int32_t x, int32_t y) |
int32_t | GetTemperature () |
int32_t | GetSeason () |
int32_t | GetClimate () |
void | SetSeasonGamma () |
void | CompileFunc (StdCompiler *pComp) |
Public Attributes | |
int32_t | Season |
int32_t | YearSpeed |
int32_t | SeasonDelay |
int32_t | Wind |
int32_t | TargetWind |
int32_t | Temperature |
int32_t | TemperatureRange |
int32_t | Climate |
int32_t | NoGamma |
Definition at line 24 of file C4Weather.h.
C4Weather::C4Weather | ( | ) |
Definition at line 29 of file C4Weather.cpp.
References Default().
C4Weather::~C4Weather | ( | ) |
Definition at line 34 of file C4Weather.cpp.
References Clear().
void C4Weather::Clear | ( | ) |
Definition at line 89 of file C4Weather.cpp.
Referenced by C4Game::Clear(), and ~C4Weather().
void C4Weather::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 174 of file C4Weather.cpp.
References C4MaxGammaRamps, Climate, C4Draw::gamma, mkArrayAdaptM(), mkNamingAdapt(), NoGamma, pDraw, Season, SeasonDelay, TargetWind, Temperature, TemperatureRange, StdCompiler::Value(), Wind, and YearSpeed.
void C4Weather::Default | ( | ) |
Definition at line 105 of file C4Weather.cpp.
References Climate, NoGamma, Season, SeasonDelay, TargetWind, Temperature, TemperatureRange, Wind, and YearSpeed.
Referenced by C4Weather(), and C4Game::Default().
void C4Weather::Execute | ( | ) |
Definition at line 58 of file C4Weather.cpp.
References C4Game::C4S, Climate, Cos(), C4SVal::Evaluate(), fixtoi(), Game, C4Game::iTick10, C4Game::iTick1000, C4Game::iTick35, itofix(), C4SVal::Max, C4SVal::Min, Season, SeasonDelay, SetSeasonGamma(), Sign(), C4SWeather::StartSeason, TargetWind, Temperature, TemperatureRange, C4Scenario::Weather, C4SWeather::Wind, Wind, and YearSpeed.
Referenced by C4Game::Execute().
int32_t C4Weather::GetClimate | ( | ) |
int32_t C4Weather::GetSeason | ( | ) |
int32_t C4Weather::GetTemperature | ( | ) |
Definition at line 100 of file C4Weather.cpp.
References Temperature.
Referenced by C4Landscape::P::DoScan(), and C4Landscape::P::ExecuteScan().
int32_t C4Weather::GetWind | ( | int32_t | x, |
int32_t | y | ||
) |
Definition at line 94 of file C4Weather.cpp.
References C4Landscape::GetBackPix(), Landscape, and Wind.
Referenced by C4PXS::Execute().
void C4Weather::Init | ( | bool | fScenario | ) |
Definition at line 39 of file C4Weather.cpp.
References C4Game::C4S, C4SWeather::Climate, Climate, C4SVal::Evaluate(), Game, C4SWeather::NoGamma, NoGamma, Season, SetSeasonGamma(), C4SWeather::StartSeason, TargetWind, Temperature, C4Scenario::Weather, C4SWeather::Wind, Wind, C4SWeather::YearSpeed, and YearSpeed.
void C4Weather::SetClimate | ( | int32_t | iClimate | ) |
Definition at line 137 of file C4Weather.cpp.
References Climate, and SetSeasonGamma().
void C4Weather::SetSeason | ( | int32_t | iSeason | ) |
Definition at line 126 of file C4Weather.cpp.
References Season, and SetSeasonGamma().
void C4Weather::SetSeasonGamma | ( | ) |
Definition at line 156 of file C4Weather.cpp.
References Clamp(), NoGamma, and Season.
Referenced by Execute(), Init(), SetClimate(), SetSeason(), and SetTemperature().
void C4Weather::SetTemperature | ( | int32_t | iTemperature | ) |
Definition at line 120 of file C4Weather.cpp.
References SetSeasonGamma(), and Temperature.
void C4Weather::SetWind | ( | int32_t | iWind | ) |
int32_t C4Weather::Climate |
Definition at line 32 of file C4Weather.h.
Referenced by CompileFunc(), Default(), Execute(), GetClimate(), Init(), and SetClimate().
int32_t C4Weather::NoGamma |
Definition at line 33 of file C4Weather.h.
Referenced by CompileFunc(), Default(), Init(), and SetSeasonGamma().
int32_t C4Weather::Season |
Definition at line 30 of file C4Weather.h.
Referenced by CompileFunc(), Default(), Execute(), GetSeason(), Init(), SetSeason(), and SetSeasonGamma().
int32_t C4Weather::SeasonDelay |
Definition at line 30 of file C4Weather.h.
Referenced by CompileFunc(), Default(), and Execute().
int32_t C4Weather::TargetWind |
Definition at line 31 of file C4Weather.h.
Referenced by CompileFunc(), Default(), Execute(), Init(), and SetWind().
int32_t C4Weather::Temperature |
Definition at line 32 of file C4Weather.h.
Referenced by CompileFunc(), Default(), Execute(), GetTemperature(), Init(), and SetTemperature().
int32_t C4Weather::TemperatureRange |
Definition at line 32 of file C4Weather.h.
Referenced by CompileFunc(), Default(), and Execute().
int32_t C4Weather::Wind |
Definition at line 31 of file C4Weather.h.
Referenced by CompileFunc(), Default(), C4Sky::Execute(), Execute(), GetWind(), Init(), and SetWind().
int32_t C4Weather::YearSpeed |
Definition at line 30 of file C4Weather.h.
Referenced by CompileFunc(), Default(), Execute(), and Init().