Class ClimateManager

java.lang.Object
zombie.iso.weather.ClimateManager
Direct Known Subclasses:
ClimMngrDebug

public class ClimateManager extends Object
TurboTuTone.
  • Field Details

  • 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

      public static ClimateManager getInstance()
    • setInstance

      public static void setInstance(ClimateManager inst)
    • getColNight

      public ClimateColorInfo getColNight()
    • getColNightNoMoon

      public ClimateColorInfo getColNightNoMoon()
    • getColNightMoon

      public ClimateColorInfo getColNightMoon()
    • getColFog

      public ClimateColorInfo getColFog()
    • getColFogLegacy

      public ClimateColorInfo getColFogLegacy()
    • getColFogNew

      public ClimateColorInfo getColFogNew()
    • getFogTintStorm

      public ClimateColorInfo getFogTintStorm()
    • getFogTintTropical

      public ClimateColorInfo getFogTintTropical()
    • getFloatMax

      public int getFloatMax()
    • getClimateFloat

      public ClimateManager.ClimateFloat getClimateFloat(int id)
    • getColorMax

      public int getColorMax()
    • getClimateColor

      public ClimateManager.ClimateColor getClimateColor(int id)
    • getBoolMax

      public int getBoolMax()
    • getClimateBool

      public ClimateManager.ClimateBool getClimateBool(int id)
    • 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

      public Color getGlobalLightInternal()
    • getGlobalLight

      public ClimateColorInfo getGlobalLight()
    • getGlobalLightIntensity

      public float getGlobalLightIntensity()
    • getColorNewFog

      public ClimateColorInfo 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

      public float getWindForceMovement(IsoGameCharacter character, float angle)
    • 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

      public ClimateManager.DayInfo getCurrentDay()
    • getPreviousDay

      public ClimateManager.DayInfo getPreviousDay()
    • getNextDay

      public ClimateManager.DayInfo getNextDay()
    • getSeason

      public ErosionSeason getSeason()
    • getFrontStrength

      public float getFrontStrength()
    • stopWeatherAndThunder

      public void stopWeatherAndThunder()
    • getThunderStorm

      public ThunderStorm getThunderStorm()
    • getWeatherPeriod

      public WeatherPeriod getWeatherPeriod()
    • getIsThunderStorming

      public boolean getIsThunderStorming()
    • getWeatherInterference

      public float getWeatherInterference()
    • getModData

      public se.krka.kahlua.vm.KahluaTable getModData()
    • getAirTemperatureForCharacter

      public float getAirTemperatureForCharacter(IsoGameCharacter plr)
    • getAirTemperatureForCharacter

      public float getAirTemperatureForCharacter(IsoGameCharacter plr, boolean doWindChill)
    • getAirTemperatureForSquare

      public float getAirTemperatureForSquare(IsoGridSquare square)
    • getAirTemperatureForSquare

      public float getAirTemperatureForSquare(IsoGridSquare square, BaseVehicle vehicle)
    • getAirTemperatureForSquare

      public float getAirTemperatureForSquare(IsoGridSquare square, BaseVehicle vehicle, boolean doWindChill)
    • getSeasonName

      public String getSeasonName()
    • getSeasonProgression

      public float getSeasonProgression()
    • getSeasonStrength

      public float getSeasonStrength()
    • init

      public void init(IsoMetaGrid metaGrid)
    • 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()
    • 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

      public ClimateColorInfo getSeasonColor(int segment, int temperature, int season)
    • save

      public void save(DataOutputStream output) throws IOException
      IO
      Throws:
      IOException
    • load

      public void load(DataInputStream input, int worldVersion) throws IOException
      Throws:
      IOException
    • postCellLoadSetSnow

      public void postCellLoadSetSnow()
    • forceDayInfoUpdate

      public void forceDayInfoUpdate()
    • 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)
    • 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

      public ClimateValues getClimateValuesCopy()
    • CopyClimateValues

      public void CopyClimateValues(ClimateValues copy)
    • getClimateForecaster

      public ClimateForecaster getClimateForecaster()
    • getClimateHistory

      public ClimateHistory getClimateHistory()
    • CalculateWeatherFrontStrength

      public void CalculateWeatherFrontStrength(int year, int month, int day, ClimateManager.AirFront front)
    • getWindAngleString

      public static String getWindAngleString(float angle)
    • sendInitialState

      public void sendInitialState(UdpConnection connection) throws IOException
      Throws:
      IOException
    • isUpdated

      public boolean isUpdated()