Private Member Functions | |
private void | WeatherPhenomenon () |
private void | ~WeatherPhenomenon () |
proto native EWeatherPhenomenon | GetType () |
Returns type of this phenomenon. | |
proto native float | GetActual () |
proto native float | GetForecast () |
Returns a forecast value the phenomenon is heading towards. | |
proto native void | Set (float forecast, float time=0, float minDuration=0) |
Sets the forecast. | |
proto native float | GetNextChange () |
Reads the time in seconds when the next forecast will be computed. | |
proto native void | SetNextChange (float time) |
Sets the time in seconds when the next forecast will be computed. | |
proto void | GetLimits (out float fnMin, out float fnMax) |
Reads limits of this phenomenon. | |
proto native void | SetLimits (float fnMin, float fnMax) |
Sets limits of this phenomenon. | |
proto void | GetForecastChangeLimits (out float fcMin, out float fcMax) |
Reads limits of change when forecast is computed. | |
proto native void | SetForecastChangeLimits (float fcMin, float fcMax) |
Sets limits of change when forecast is computed. | |
proto void | GetForecastTimeLimits (out float ftMin, out float ftMax) |
Reads time range in which next forecast can be computed. | |
proto native void | SetForecastTimeLimits (float ftMin, float ftMax) |
Sets time range in which next forecast can be computed. | |
bool | OnBeforeChange (float change, float time) |
Is called every time the Phenomenon computes new forecast. | |
Weather phenomenon
|
inlineprivate |
|
inlineprivate |
|
private |
Returns actual value of phenomenon in range <0, 1>. (does not apply for Wind, which always returns the magnitude values)
Referenced by SakhalData::CalculateVolFog(), WorldData::CalculateWind(), EnochData::CalculateWind(), ItemBase::CheckRainTick(), Environment::CollectAndSetEnvironmentData(), WorldData::ComputeSnowflakeScale(), Cooling(), RainProcurementHandler::DetermineAmountCoef(), Weather::GetNoiseReductionByWeather(), WorldData::GetTemperature(), WorldData::GetTemperatureComponentValue(), Heating(), SakhalData::Init(), Init(), InitValues(), OnBeforeChange(), UIPopupScript::OnOpen(), RainProcurementManager::RainProcurementCheck(), UIPopupScript::ResetSliders(), UpdateWeatherValues(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), SakhalData::WeatherOnBeforeChange(), and WorldData::WindEffectTemperatureValue().
|
private |
Returns a forecast value the phenomenon is heading towards.
Referenced by WorldData::CalculateWind(), EnochData::CalculateWind(), SakhalData::CalculateWind(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
Reads limits of change when forecast is computed.
fcMin | Forecast change minimum (in range <0, 1>). |
fcMax | Forecast change maximum (in range <0, 1>). |
Reads time range in which next forecast can be computed.
ftMin | Minimal number of seconds. |
ftMax | Maximal number of seconds. |
Reads limits of this phenomenon.
fnMin | Function minimum (in range <0, 1>). |
fnMax | Function maximum (in range <0, 1>). |
|
private |
Reads the time in seconds when the next forecast will be computed.
|
private |
Returns type of this phenomenon.
Referenced by OnBeforeChange().
Is called every time the Phenomenon computes new forecast.
change | Computed change of forecast value. |
time | Seconds when the next forecast will be computed. |
References g_Game, GetActual(), Weather::GetMissionWeather(), GetType(), Mission::GetWorldData(), and WorldData::WeatherOnBeforeChange().
Sets the forecast.
forecast | Desired forecast value that should be met in given time. |
time | A time of the next change (how long it takes in seconds to interpolate to given value). |
minDuration | A minimal time in seconds the change will last. |
Referenced by DayZIntroScene::DayZIntroScene(), DayZIntroSceneXbox::DayZIntroSceneXbox(), WorldData::Init(), EnochData::Init(), SakhalData::Init(), UIPopupScript::OnChange(), UIPopupScript::OnClick(), UIPopupScript::OnClose(), CGame::OnRPC(), SceneData::SetInitFog(), SceneData::SetInitOvercast(), SceneData::SetInitRain(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange(), and SakhalData::WeatherOnBeforeChange().
Sets limits of change when forecast is computed.
These limits govern how much the forecast value can change when it is computed by weather controller.
Default values are: fcMin = 0 fcMax = 1
fcMin | Forecast change minimum (in range <0, 1>). |
fcMax | Forecast change maximum (in range <0, 1>). |
Referenced by SakhalData::WeatherOnBeforeChange().
Sets time range in which next forecast can be computed.
Default values are: ftMin = 300 (5 minutes) ftMax = 3600 (1 hour)
ftMin | Minimal number of seconds. |
ftMax | Maximal number of seconds. |
Sets limits of this phenomenon.
Actual value of this phenomenon will be always held in range <fnMin, fnMax>.
Default values are: fnMin = 0 fnMax = 1
fnMin | Function minimum (in range <0, 1>). |
fnMax | Function maximum (in range <0, 1>). |
Referenced by DayZIntroScene::DayZIntroScene(), DayZIntroSceneXbox::DayZIntroSceneXbox(), SakhalData::Init(), and SakhalData::WeatherOnBeforeChange().
|
private |
Sets the time in seconds when the next forecast will be computed.