PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
SakhalData Class Reference

Private Member Functions

override void Init ()
 
override void InitYieldBank ()
 
override void SetupWeatherSettings ()
 
override void SetupLiquidTemperatures ()
 
override bool WeatherOnBeforeChange (EWeatherPhenomenon type, float actual, float change, float time)
 
protected override void CalculateWind (int newWeather, bool suddenChange, out float magnitude, out float direction)
 
protected override void CalculateVolFog (float lerpValue, float windMagnitude, float changeTime)
 
override float GetAgentSpawnChance (eAgents agent)
 
override float GetColdAreaToolDamageModifier ()
 
bool LogWeatherData ()
 

Private Attributes

const float SPAWN_CHANCE_CHOLERA = 20
 
const float COLD_AREA_TOOL_DMG_MODIF = 1.2
 
const int CLEAR_WEATHER = 1
 DEPRECATED (see WorldDataWeatherConstants)
 
const int CLOUDY_WEATHER = 2
 
const int BAD_WEATHER = 3
 

Member Function Documentation

◆ CalculateVolFog()

protected override void CalculateVolFog ( float  lerpValue,
float  windMagnitude,
float  changeTime 
)
inlineprivate

◆ CalculateWind()

protected override void CalculateWind ( int  newWeather,
bool  suddenChange,
out float  magnitude,
out float  direction 
)
inlineprivate

◆ GetAgentSpawnChance()

override float GetAgentSpawnChance ( eAgents  agent)
inlineprivate

References SPAWN_CHANCE_CHOLERA.

◆ GetColdAreaToolDamageModifier()

override float GetColdAreaToolDamageModifier ( )
inlineprivate

◆ Init()

◆ InitYieldBank()

override void InitYieldBank ( )
inlineprivate

◆ LogWeatherData()

bool LogWeatherData ( )
inlineprivate

◆ SetupLiquidTemperatures()

◆ SetupWeatherSettings()

◆ WeatherOnBeforeChange()

override bool WeatherOnBeforeChange ( EWeatherPhenomenon  type,
float  actual,
float  change,
float  time 
)
inlineprivate

References CalculateVolFog(), CalculateWind(), CloseFile(), CLOUDY_WEATHER, FPrintln(), g_Game, WeatherPhenomenon::GetActual(), World::GetDate(), Weather::GetFog(), WeatherPhenomenon::GetForecast(), GetGame(), Weather::GetOvercast(), Weather::GetRain(), Weather::GetSnowfall(), Weather::GetWindDirection(), Weather::GetWindMagnitude(), Weather::GetWindSpeed(), CGame::GetWorld(), IDC_MAIN_QUIT, WorldData::m_BadWeatherChance, WorldDataWeatherSettings::m_BadWeatherChance, WorldDataWeatherSettings::m_BadWeatherSuddenChance, WorldData::m_Chance, WorldData::m_ChoosenWeather, WorldData::m_ClearWeatherChance, WorldDataWeatherSettings::m_ClearWeatherChance, WorldDataWeatherSettings::m_GlobalSuddenChance, WorldData::m_IsSuddenChange, WorldData::m_LastWeather, WorldDataWeatherSettings::m_OvercastMaxLength, WorldDataWeatherSettings::m_OvercastMaxTime, WorldDataWeatherSettings::m_OvercastMinLength, WorldDataWeatherSettings::m_OvercastMinTime, WorldData::m_SameWeatherCnt, WorldDataWeatherSettings::m_SnowfallLengthMax, WorldDataWeatherSettings::m_SnowfallLengthMin, WorldDataWeatherSettings::m_SnowfallThreshold, WorldDataWeatherSettings::m_SnowfallTimeMax, WorldDataWeatherSettings::m_SnowfallTimeMin, WorldData::m_StepValue, WorldDataWeatherSettings::m_ThundersnowThreshold, WorldData::m_Weather, WorldData::m_WeatherDefaultSettings, OpenFile(), Math::RandomFloat(), Math::RandomFloatInclusive(), Math::RandomInt(), Math::RandomIntInclusive(), WeatherPhenomenon::Set(), WeatherPhenomenon::SetForecastChangeLimits(), WeatherPhenomenon::SetLimits(), Weather::SetSnowfallThresholds(), Weather::SetStorm(), Weather::SetWindMaximumSpeed(), WorldData::SUDDENCHANGE_LENGTH_MULTIPLIER, WorldData::SUDDENCHANGE_TIME_MULTIPLIER, Debug::WeatherLog(), WorldData::WIND_DIRECTION_TIME_MULTIPLIER, and WorldData::WIND_MAGNITUDE_TIME_MULTIPLIER.

Field Documentation

◆ BAD_WEATHER

const int BAD_WEATHER = 3
private

◆ CLEAR_WEATHER

const int CLEAR_WEATHER = 1
private

DEPRECATED (see WorldDataWeatherConstants)

◆ CLOUDY_WEATHER

const int CLOUDY_WEATHER = 2
private

Referenced by WeatherOnBeforeChange().

◆ COLD_AREA_TOOL_DMG_MODIF

const float COLD_AREA_TOOL_DMG_MODIF = 1.2
private

◆ SPAWN_CHANCE_CHOLERA

const float SPAWN_CHANCE_CHOLERA = 20
private

Referenced by GetAgentSpawnChance().


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