Class ClimateManager
java.lang.Object
zombie.iso.weather.ClimateManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static enum
NETWORKINGstatic class
DAY INFOprotected static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
protected ClimateManager.ClimateFloat
static final float
static final int
static final int
protected ClimateManager.ClimateFloat
static final int
static final int
static final int
protected ClimateManager.ClimateColor
protected ClimateManager.ClimateFloat
protected ClimateManager.ClimateFloat
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected ClimateManager.ClimateFloat
static final int
static final int
static final int
protected ClimateManager.ClimateColor
protected ClimateManager.ClimateFloat
protected ClimateManager.ClimateFloat
static final float
static final float
protected ClimateManager.ClimateFloat
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
protected ClimateManager.ClimateFloat
protected ClimateManager.ClimateBool
protected ClimateManager.ClimateFloat
static boolean
protected ClimateManager.ClimateFloat
protected ClimateManager.ClimateFloat
protected ClimateManager.ClimateFloat
static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
CalculateWeatherFrontStrength
(int year, int month, int day, ClimateManager.AirFront front) static float
clamp
(float min, float max, float val) static int
clamp
(int min, int max, int val) static float
clamp01
(float val) static float
clerp
(float t, float a, float b) void
void
void
execute_Simulation
(int RainModOverride) void
float
float
protected double
getAirMassNoiseFrequencyMod
(int int0) float
float
float
getAirTemperatureForCharacter
(IsoGameCharacter plr, boolean doWindChill) float
float
getAirTemperatureForSquare
(IsoGridSquare square, BaseVehicle vehicle) float
getAirTemperatureForSquare
(IsoGridSquare square, BaseVehicle vehicle, boolean doWindChill) float
float
int
getClimateBool
(int id) getClimateColor
(int id) getClimateFloat
(int id) float
int
float
float
float
float
boolean
boolean
boolean
int
float
float
float
float
static ClimateManager
boolean
float
float
se.krka.kahlua.vm.KahluaTable
float
float
boolean
float
protected float
getRainTimeMultiplierMod
(int int0) getSeasonColor
(int segment, int _temperature, int _season) byte
float
float
double
double
double
double
float
float
float
float
protected float
getTimeLerp
(float float0, float float1, float float2) protected float
getTimeLerp
(float float2, float float0, float float1, boolean boolean1) protected float
getTimeLerpHours
(float float0, float float1, float float2) protected float
getTimeLerpHours
(float float2, float float1, float float0, boolean boolean0) float
float
float
float
float
static String
getWindAngleString
(float angle) float
getWindForceMovement
(IsoGameCharacter character, float angle) float
static double
static double
float
float
float
static double
double
void
init
(IsoMetaGrid metaGrid) boolean
boolean
boolean
void
static float
lerp
(float t, float a, float b) void
load
(DataInputStream input, int worldVersion) static float
normalizeRange
(float v, float n) void
static float
posToPosNegRange
(float v) final void
receiveClimatePacket
(ByteBuffer bb, UdpConnection ignoreConnection) void
Reset()
void
void
void
void
save
(DataOutputStream output) IOvoid
sendInitialState
(UdpConnection connection) void
setAmbient
(float f) protected void
setDayInfo
(ClimateManager.DayInfo dayInfo, int int2, int int1, int int0, int int3) void
setDayLightStrength
(float f) void
setDesaturation
(float _desaturation) void
setEnabledFxUpdate
(boolean b) void
setEnabledSimulation
(boolean b) void
setEnabledWeatherGeneration
(boolean b) static void
setInstance
(ClimateManager inst) void
setNightStrength
(float b) void
setPrecipitationIsSnow
(boolean b) void
setSeasonColorDawn
(int _temperature, int _season, float r, float g, float b, float a, boolean exterior) void
setSeasonColorDay
(int _temperature, int _season, float r, float g, float b, float a, boolean exterior) void
setSeasonColorDusk
(int _temperature, int _season, float r, float g, float b, float a, boolean exterior) void
setViewDistance
(float f) void
static float
ToKph
(float val) static float
ToMph
(float val) void
protected final void
transmitClimatePacket
(ClimateManager.ClimateNetAuth climateNetAuth, byte byte0, UdpConnection udpConnection1) void
transmitGenerateWeather
(float strength, int front) void
void
transmitServerStartRain
(float intensity) void
void
void
transmitServerTriggerLightning
(int x, int y, boolean doStrike, boolean doLightning, boolean doRumble) void
transmitServerTriggerStorm
(float duration) void
void
transmitTriggerBlizzard
(float duration) void
transmitTriggerStorm
(float duration) void
transmitTriggerTropical
(float duration) boolean
triggerCustomWeather
(float strength, boolean warmFront) boolean
triggerCustomWeatherStage
(int stage, float duration) void
triggerKateBobIntroStorm
(int centerX, int centerY, double duration, float strength, float initialProgress, float angle, float initialPuddles) void
triggerKateBobIntroStorm
(int centerX, int centerY, double duration, float strength, float initialProgress, float angle, float initialPuddles, ClimateColorInfo cloudcolor) void
void
update()
void
void
-
Field Details
-
FRONT_COLD
public static final int FRONT_COLD- See Also:
-
FRONT_STATIONARY
public static final int FRONT_STATIONARY- See Also:
-
FRONT_WARM
public static final int FRONT_WARM- See Also:
-
MAX_WINDSPEED_KPH
public static final float MAX_WINDSPEED_KPH- See Also:
-
MAX_WINDSPEED_MPH
public static final float MAX_WINDSPEED_MPH- See Also:
-
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
-
humidity
-
globalLight
-
colorNewFog
-
precipitationIsSnow
-
FLOAT_DESATURATION
public static final int FLOAT_DESATURATION- See Also:
-
FLOAT_GLOBAL_LIGHT_INTENSITY
public static final int FLOAT_GLOBAL_LIGHT_INTENSITY- See Also:
-
FLOAT_NIGHT_STRENGTH
public static final int FLOAT_NIGHT_STRENGTH- See Also:
-
FLOAT_PRECIPITATION_INTENSITY
public static final int FLOAT_PRECIPITATION_INTENSITY- See Also:
-
FLOAT_TEMPERATURE
public static final int FLOAT_TEMPERATURE- See Also:
-
FLOAT_FOG_INTENSITY
public static final int FLOAT_FOG_INTENSITY- See Also:
-
FLOAT_WIND_INTENSITY
public static final int FLOAT_WIND_INTENSITY- See Also:
-
FLOAT_WIND_ANGLE_INTENSITY
public static final int FLOAT_WIND_ANGLE_INTENSITY- See Also:
-
FLOAT_CLOUD_INTENSITY
public static final int FLOAT_CLOUD_INTENSITY- See Also:
-
FLOAT_AMBIENT
public static final int FLOAT_AMBIENT- See Also:
-
FLOAT_VIEW_DISTANCE
public static final int FLOAT_VIEW_DISTANCE- See Also:
-
FLOAT_DAYLIGHT_STRENGTH
public static final int FLOAT_DAYLIGHT_STRENGTH- See Also:
-
FLOAT_HUMIDITY
public static final int FLOAT_HUMIDITY- See Also:
-
FLOAT_MAX
public static final int FLOAT_MAX- See Also:
-
COLOR_GLOBAL_LIGHT
public static final int COLOR_GLOBAL_LIGHT- See Also:
-
COLOR_NEW_FOG
public static final int COLOR_NEW_FOG- See Also:
-
COLOR_MAX
public static final int COLOR_MAX- See Also:
-
BOOL_IS_SNOW
public static final int BOOL_IS_SNOW- See Also:
-
BOOL_MAX
public static final int BOOL_MAX- See Also:
-
AVG_FAV_AIR_TEMPERATURE
public static final float AVG_FAV_AIR_TEMPERATURE- See Also:
-
PacketUpdateClimateVars
public static final byte PacketUpdateClimateVars- See Also:
-
PacketWeatherUpdate
public static final byte PacketWeatherUpdate- See Also:
-
PacketThunderEvent
public static final byte PacketThunderEvent- See Also:
-
PacketFlare
public static final byte PacketFlare- See Also:
-
PacketAdminVarsUpdate
public static final byte PacketAdminVarsUpdate- See Also:
-
PacketRequestAdminVars
public static final byte PacketRequestAdminVars- See Also:
-
PacketClientChangedAdminVars
public static final byte PacketClientChangedAdminVars- See Also:
-
PacketClientChangedWeather
public static final byte PacketClientChangedWeather- See Also:
-
-
Constructor Details
-
ClimateManager
public ClimateManager()
-
-
Method Details
-
getMaxWindspeedKph
public float getMaxWindspeedKph() -
getMaxWindspeedMph
public float getMaxWindspeedMph() -
ToKph
public static float ToKph(float val) -
ToMph
public static float ToMph(float val) -
getInstance
-
setInstance
-
getColNight
-
getColNightNoMoon
-
getColNightMoon
-
getColFog
-
getColFogLegacy
-
getColFogNew
-
getFogTintStorm
-
getFogTintTropical
-
getFloatMax
public int getFloatMax() -
getClimateFloat
-
getColorMax
public int getColorMax() -
getClimateColor
-
getBoolMax
public int getBoolMax() -
getClimateBool
-
setEnabledSimulation
public void setEnabledSimulation(boolean b) -
getEnabledSimulation
public boolean getEnabledSimulation() -
getEnabledFxUpdate
public boolean getEnabledFxUpdate() -
setEnabledFxUpdate
public void setEnabledFxUpdate(boolean b) -
getEnabledWeatherGeneration
public boolean getEnabledWeatherGeneration() -
setEnabledWeatherGeneration
public void setEnabledWeatherGeneration(boolean b) -
getGlobalLightInternal
-
getGlobalLight
-
getGlobalLightIntensity
public float getGlobalLightIntensity() -
getColorNewFog
-
setNightStrength
public void setNightStrength(float b) -
getDesaturation
public float getDesaturation() -
setDesaturation
public void setDesaturation(float _desaturation) -
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() -
getCorrectedWindAngleIntensity
public float getCorrectedWindAngleIntensity() -
getWindPower
public float getWindPower() -
getWindspeedKph
public float getWindspeedKph() -
getCloudIntensity
public float getCloudIntensity() -
getAmbient
public float getAmbient() -
getViewDistance
public float getViewDistance() -
getHumidity
public float getHumidity() -
getWindAngleDegrees
public float getWindAngleDegrees() -
getWindAngleRadians
public float getWindAngleRadians() -
getWindSpeedMovement
public float getWindSpeedMovement() -
getWindForceMovement
-
isRaining
public boolean isRaining() -
getRainIntensity
public float getRainIntensity() -
isSnowing
public boolean isSnowing() -
getSnowIntensity
public float getSnowIntensity() -
setAmbient
public void setAmbient(float f) -
setViewDistance
public void setViewDistance(float f) -
setDayLightStrength
public void setDayLightStrength(float f) -
setPrecipitationIsSnow
public void setPrecipitationIsSnow(boolean b) -
getCurrentDay
-
getPreviousDay
-
getNextDay
-
getSeason
-
getFrontStrength
public float getFrontStrength() -
stopWeatherAndThunder
public void stopWeatherAndThunder() -
getThunderStorm
-
getWeatherPeriod
-
getIsThunderStorming
public boolean getIsThunderStorming() -
getWeatherInterference
public float getWeatherInterference() -
getModData
public se.krka.kahlua.vm.KahluaTable getModData() -
getAirTemperatureForCharacter
-
getAirTemperatureForCharacter
-
getAirTemperatureForSquare
-
getAirTemperatureForSquare
-
getAirTemperatureForSquare
public float getAirTemperatureForSquare(IsoGridSquare square, BaseVehicle vehicle, boolean doWindChill) -
getSeasonName
-
getSeasonNameTranslated
-
getSeasonId
public byte getSeasonId() -
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() -
getSnowFracNow
public float getSnowFracNow() -
resetOverrides
public void resetOverrides() -
resetModded
public void resetModded() -
resetAdmin
public void resetAdmin() -
triggerWinterIsComingStorm
public void triggerWinterIsComingStorm() -
triggerCustomWeather
public boolean triggerCustomWeather(float strength, boolean warmFront) -
triggerCustomWeatherStage
public boolean triggerCustomWeatherStage(int stage, float duration) -
launchFlare
public void launchFlare() -
getAirMassNoiseFrequencyMod
protected double getAirMassNoiseFrequencyMod(int int0) -
getRainTimeMultiplierMod
protected float getRainTimeMultiplierMod(int int0) -
setSeasonColorDawn
public void setSeasonColorDawn(int _temperature, int _season, float r, float g, float b, float a, boolean exterior) -
setSeasonColorDay
public void setSeasonColorDay(int _temperature, int _season, float r, float g, float b, float a, boolean exterior) -
setSeasonColorDusk
public void setSeasonColorDusk(int _temperature, int _season, float r, float g, float b, float a, boolean exterior) -
getSeasonColor
-
save
-
load
- Throws:
IOException
-
postCellLoadSetSnow
public void postCellLoadSetSnow() -
forceDayInfoUpdate
public void forceDayInfoUpdate() -
setDayInfo
-
transmitClimatePacket
protected final void transmitClimatePacket(ClimateManager.ClimateNetAuth climateNetAuth, byte byte0, UdpConnection udpConnection1) -
receiveClimatePacket
public final void receiveClimatePacket(ByteBuffer bb, UdpConnection ignoreConnection) throws IOException - Throws:
IOException
-
transmitServerStopWeather
public void transmitServerStopWeather() -
transmitServerTriggerStorm
public void transmitServerTriggerStorm(float duration) -
transmitServerTriggerLightning
public void transmitServerTriggerLightning(int x, int y, boolean doStrike, boolean doLightning, boolean doRumble) -
transmitServerStartRain
public void transmitServerStartRain(float intensity) -
transmitServerStopRain
public void transmitServerStopRain() -
transmitRequestAdminVars
public void transmitRequestAdminVars() -
transmitClientChangeAdminVars
public void transmitClientChangeAdminVars() -
transmitStopWeather
public void transmitStopWeather() -
transmitTriggerStorm
public void transmitTriggerStorm(float duration) -
transmitTriggerTropical
public void transmitTriggerTropical(float duration) -
transmitTriggerBlizzard
public void transmitTriggerBlizzard(float duration) -
transmitGenerateWeather
public void transmitGenerateWeather(float strength, int front) -
getTimeLerpHours
protected float getTimeLerpHours(float float0, float float1, float float2) -
getTimeLerpHours
protected float getTimeLerpHours(float float2, float float1, float float0, boolean boolean0) -
getTimeLerp
protected float getTimeLerp(float float0, float float1, float float2) -
getTimeLerp
protected float getTimeLerp(float float2, float float0, float float1, boolean boolean1) -
clamp01
public static float clamp01(float val) -
clamp
public static float clamp(float min, float max, float val) -
clamp
public static int clamp(int min, int max, int val) -
lerp
public static float lerp(float t, float a, float b) -
clerp
public static float clerp(float t, float a, float b) -
normalizeRange
public static float normalizeRange(float v, float n) -
posToPosNegRange
public static float posToPosNegRange(float v) -
execute_Simulation
public void execute_Simulation() -
execute_Simulation
public void execute_Simulation(int RainModOverride) -
triggerKateBobIntroStorm
public void triggerKateBobIntroStorm(int centerX, int centerY, double duration, float strength, float initialProgress, float angle, float initialPuddles) -
triggerKateBobIntroStorm
public void triggerKateBobIntroStorm(int centerX, int centerY, double duration, float strength, float initialProgress, float angle, float initialPuddles, ClimateColorInfo cloudcolor) -
getSimplexOffsetA
public double getSimplexOffsetA() -
getSimplexOffsetB
public double getSimplexOffsetB() -
getSimplexOffsetC
public double getSimplexOffsetC() -
getSimplexOffsetD
public double getSimplexOffsetD() -
getWorldAgeHours
public double getWorldAgeHours() -
getClimateValuesCopy
-
CopyClimateValues
-
getClimateForecaster
-
getClimateHistory
-
CalculateWeatherFrontStrength
public void CalculateWeatherFrontStrength(int year, int month, int day, ClimateManager.AirFront front) -
getWindAngleString
-
sendInitialState
- Throws:
IOException
-
isUpdated
public boolean isUpdated() -
Reset
public void Reset()
-