Package zombie.iso.weather
Class ClimateManager
java.lang.Object
zombie.iso.weather.ClimateManager
- Direct Known Subclasses:
ClimMngrDebug
public class ClimateManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClimateManager.AirFront
static class
ClimateManager.ClimateBool
static class
ClimateManager.ClimateColor
static class
ClimateManager.ClimateFloat
static class
ClimateManager.ClimateNetAuth
class
ClimateManager.DayInfo
protected static class
ClimateManager.SeasonColor
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClimateManager()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FRONT_COLD
public static final int FRONT_COLD- See Also:
- Constant Field Values
-
FRONT_STATIONARY
public static final int FRONT_STATIONARY- See Also:
- Constant Field Values
-
FRONT_WARM
public static final int FRONT_WARM- See Also:
- Constant Field Values
-
MAX_WINDSPEED_KPH
public static final float MAX_WINDSPEED_KPH- See Also:
- Constant Field Values
-
WINTER_IS_COMING
public static boolean WINTER_IS_COMING -
THE_DESCENDING_FOG
public static boolean THE_DESCENDING_FOG -
A_STORM_IS_COMING
public static boolean A_STORM_IS_COMING -
desaturation
-
globalLightIntensity
-
nightStrength
-
precipitationIntensity
-
temperature
-
fogIntensity
-
windIntensity
-
windAngleIntensity
-
cloudIntensity
-
ambient
-
viewDistance
-
dayLightStrength
-
globalLight
-
precipitationIsSnow
-
FLOAT_DESATURATION
public static final int FLOAT_DESATURATION- See Also:
- Constant Field Values
-
FLOAT_GLOBAL_LIGHT_INTENSITY
public static final int FLOAT_GLOBAL_LIGHT_INTENSITY- See Also:
- Constant Field Values
-
FLOAT_NIGHT_STRENGTH
public static final int FLOAT_NIGHT_STRENGTH- See Also:
- Constant Field Values
-
FLOAT_PRECIPITATION_INTENSITY
public static final int FLOAT_PRECIPITATION_INTENSITY- See Also:
- Constant Field Values
-
FLOAT_TEMPERATURE
public static final int FLOAT_TEMPERATURE- See Also:
- Constant Field Values
-
FLOAT_FOG_INTENSITY
public static final int FLOAT_FOG_INTENSITY- See Also:
- Constant Field Values
-
FLOAT_WIND_INTENSITY
public static final int FLOAT_WIND_INTENSITY- See Also:
- Constant Field Values
-
FLOAT_WIND_ANGLE_INTENSITY
public static final int FLOAT_WIND_ANGLE_INTENSITY- See Also:
- Constant Field Values
-
FLOAT_CLOUD_INTENSITY
public static final int FLOAT_CLOUD_INTENSITY- See Also:
- Constant Field Values
-
FLOAT_AMBIENT
public static final int FLOAT_AMBIENT- See Also:
- Constant Field Values
-
FLOAT_VIEW_DISTANCE
public static final int FLOAT_VIEW_DISTANCE- See Also:
- Constant Field Values
-
FLOAT_DAYLIGHT_STRENGTH
public static final int FLOAT_DAYLIGHT_STRENGTH- See Also:
- Constant Field Values
-
FLOAT_MAX
public static final int FLOAT_MAX- See Also:
- Constant Field Values
-
COLOR_GLOBAL_LIGHT
public static final int COLOR_GLOBAL_LIGHT- See Also:
- Constant Field Values
-
COLOR_MAX
public static final int COLOR_MAX- See Also:
- Constant Field Values
-
BOOL_IS_SNOW
public static final int BOOL_IS_SNOW- See Also:
- Constant Field Values
-
BOOL_MAX
public static final int BOOL_MAX- See Also:
- Constant Field Values
-
AVG_FAV_AIR_TEMPERATURE
public static final float AVG_FAV_AIR_TEMPERATURE- See Also:
- Constant Field Values
-
PacketUpdateClimateVars
public static final byte PacketUpdateClimateVars- See Also:
- Constant Field Values
-
PacketWeatherUpdate
public static final byte PacketWeatherUpdate- See Also:
- Constant Field Values
-
PacketThunderEvent
public static final byte PacketThunderEvent- See Also:
- Constant Field Values
-
PacketFlare
public static final byte PacketFlare- See Also:
- Constant Field Values
-
PacketAdminVarsUpdate
public static final byte PacketAdminVarsUpdate- See Also:
- Constant Field Values
-
PacketRequestAdminVars
public static final byte PacketRequestAdminVars- See Also:
- Constant Field Values
-
PacketClientChangedAdminVars
public static final byte PacketClientChangedAdminVars- See Also:
- Constant Field Values
-
PacketClientChangedWeather
public static final byte PacketClientChangedWeather- See Also:
- Constant Field Values
-
-
Constructor Details
-
ClimateManager
public ClimateManager()
-
-
Method Details
-
getMaxWindspeedKph
public float getMaxWindspeedKph() -
getInstance
-
setInstance
-
getColNight
-
getColNightNoMoon
-
getColNightMoon
-
getColFog
-
getColFogLegacy
-
getFloatMax
public int getFloatMax() -
getClimateFloat
-
getColorMax
public int getColorMax() -
getClimateColor
-
getBoolMax
public int getBoolMax() -
getClimateBool
-
setEnabledSimulation
public void setEnabledSimulation(boolean boolean1) -
getEnabledSimulation
public boolean getEnabledSimulation() -
getEnabledFxUpdate
public boolean getEnabledFxUpdate() -
setEnabledFxUpdate
public void setEnabledFxUpdate(boolean boolean1) -
getEnabledWeatherGeneration
public boolean getEnabledWeatherGeneration() -
setEnabledWeatherGeneration
public void setEnabledWeatherGeneration(boolean boolean1) -
getGlobalLightInternal
-
getGlobalLight
-
getGlobalLightIntensity
public float getGlobalLightIntensity() -
setNightStrength
public void setNightStrength(float float1) -
getDesaturation
public float getDesaturation() -
setDesaturation
public void setDesaturation(float float1) -
getAirMass
public float getAirMass() -
getAirMassDaily
public float getAirMassDaily() -
getAirMassTemperature
public float getAirMassTemperature() -
getDayLightStrength
public float getDayLightStrength() -
getNightStrength
public float getNightStrength() -
getDayMeanTemperature
public float getDayMeanTemperature() -
getTemperature
public float getTemperature() -
getBaseTemperature
public float getBaseTemperature() -
getSnowStrength
public float getSnowStrength() -
getPrecipitationIsSnow
public boolean getPrecipitationIsSnow() -
getPrecipitationIntensity
public float getPrecipitationIntensity() -
getFogIntensity
public float getFogIntensity() -
getWindIntensity
public float getWindIntensity() -
getWindAngleIntensity
public float getWindAngleIntensity() -
getWindPower
public float getWindPower() -
getWindspeedKph
public float getWindspeedKph() -
getCloudIntensity
public float getCloudIntensity() -
getAmbient
public float getAmbient() -
getViewDistance
public float getViewDistance() -
isRaining
public boolean isRaining() -
getRainIntensity
public float getRainIntensity() -
setAmbient
public void setAmbient(float float1) -
setViewDistance
public void setViewDistance(float float1) -
setDayLightStrength
public void setDayLightStrength(float float1) -
setPrecipitationIsSnow
public void setPrecipitationIsSnow(boolean boolean1) -
getCurrentDay
-
getPreviousDay
-
getNextDay
-
getSeason
-
getFrontStrength
public float getFrontStrength() -
stopWeatherAndThunder
public void stopWeatherAndThunder() -
getThunderStorm
-
getWeatherPeriod
-
getIsThunderStorming
public boolean getIsThunderStorming() -
getWeatherInterference
public float getWeatherInterference() -
getModData
-
getAirTemperatureForCharacter
-
getAirTemperatureForCharacter
-
getAirTemperatureForSquare
-
getAirTemperatureForSquare
-
getAirTemperatureForSquare
public float getAirTemperatureForSquare(IsoGridSquare square, BaseVehicle baseVehicle, boolean boolean1) -
getSeasonName
public java.lang.String getSeasonName() -
getSeasonProgression
public float getSeasonProgression() -
getSeasonStrength
public float getSeasonStrength() -
init
-
updateEveryTenMins
public void updateEveryTenMins() -
update
public void update() -
getWindNoiseBase
public static double getWindNoiseBase() -
getWindNoiseFinal
public static double getWindNoiseFinal() -
getWindTickFinal
public static double getWindTickFinal() -
updateOLD
public void updateOLD() -
resetOverrides
public void resetOverrides() -
resetModded
public void resetModded() -
resetAdmin
public void resetAdmin() -
triggerWinterIsComingStorm
public void triggerWinterIsComingStorm() -
triggerCustomWeather
public boolean triggerCustomWeather(float float1, boolean boolean1) -
triggerCustomWeatherStage
public boolean triggerCustomWeatherStage(int int1, float float1) -
launchFlare
public void launchFlare() -
getAirMassNoiseFrequencyMod
protected double getAirMassNoiseFrequencyMod(int int1) -
getRainTimeMultiplierMod
protected float getRainTimeMultiplierMod(int int1) -
setSeasonColorDawn
public void setSeasonColorDawn(int int1, int int2, float float1, float float2, float float3, float float4, boolean boolean1) -
setSeasonColorDay
public void setSeasonColorDay(int int1, int int2, float float1, float float2, float float3, float float4, boolean boolean1) -
setSeasonColorDusk
public void setSeasonColorDusk(int int1, int int2, float float1, float float2, float float3, float float4, boolean boolean1) -
getSeasonColor
-
save
public void save(java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.io.DataInputStream dataInputStream, int int1) throws java.io.IOException- Throws:
java.io.IOException
-
postCellLoadSetSnow
public void postCellLoadSetSnow() -
forceDayInfoUpdate
public void forceDayInfoUpdate() -
transmitClimatePacket
protected final void transmitClimatePacket(ClimateManager.ClimateNetAuth climateNetAuth, byte byte1, UdpConnection udpConnection) -
receiveClimatePacket
public final void receiveClimatePacket(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) throws java.io.IOException- Throws:
java.io.IOException
-
transmitServerStopWeather
public void transmitServerStopWeather() -
transmitServerTriggerStorm
public void transmitServerTriggerStorm(float float1) -
transmitServerStartRain
public void transmitServerStartRain(float float1) -
transmitServerStopRain
public void transmitServerStopRain() -
transmitRequestAdminVars
public void transmitRequestAdminVars() -
transmitClientChangeAdminVars
public void transmitClientChangeAdminVars() -
transmitStopWeather
public void transmitStopWeather() -
transmitTriggerStorm
public void transmitTriggerStorm(float float1) -
transmitTriggerTropical
public void transmitTriggerTropical(float float1) -
transmitTriggerBlizzard
public void transmitTriggerBlizzard(float float1) -
transmitGenerateWeather
public void transmitGenerateWeather(float float1, int int1) -
clamp01
public static float clamp01(float float1) -
clamp
public static float clamp(float float1, float float2, float float3) -
clamp
public static int clamp(int int1, int int2, int int3) -
lerp
public static float lerp(float float1, float float2, float float3) -
clerp
public static float clerp(float float1, float float2, float float3) -
normalizeRange
public static float normalizeRange(float float1, float float2) -
posToPosNegRange
public static float posToPosNegRange(float float1) -
execute_Simulation
public void execute_Simulation() -
execute_Simulation
public void execute_Simulation(int int1)
-