Class WeatherPeriod
java.lang.Object
zombie.iso.weather.WeatherPeriod
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAndAddModdedStage(String moddedID, double _duration) createAndAddStage(int typeid, double _duration) booleanintfloatdoubleintstatic floatfloatbooleanfloatgetStageForWorldAge(double worldAgeHours) floatfloatfloatdoublefloatbooleanbooleanbooleanhasStorm()booleanvoidinitSimulationDebug(ClimateManager.AirFront front, double hoursSinceStart) voidinitSimulationDebug(ClimateManager.AirFront front, double hoursSinceStart, int doThisStageOnly, float singleStageDuration) booleanbooleanbooleanbooleanvoidload(DataInputStream input, int worldVersion) voidreadNetWeatherData(ByteBuffer input) voidsave(DataOutputStream output) IOvoidsetCloudColor(ClimateColorInfo cloudcol) voidsetDummy(boolean b) voidsetKateBobStormCoords(int x, int y) voidsetKateBobStormProgress(float progress) voidsetPrintStuff(boolean b) booleanstartCreateModdedPeriod(boolean warmFront, float strength, float angle) voidvoidupdate(double hoursSinceStart) voidwriteNetWeatherData(ByteBuffer output)
-
Field Details
-
STAGE_START
public static final int STAGE_START- See Also:
-
STAGE_SHOWERS
public static final int STAGE_SHOWERS- See Also:
-
STAGE_HEAVY_PRECIP
public static final int STAGE_HEAVY_PRECIP- See Also:
-
STAGE_STORM
public static final int STAGE_STORM- See Also:
-
STAGE_CLEARING
public static final int STAGE_CLEARING- See Also:
-
STAGE_MODERATE
public static final int STAGE_MODERATE- See Also:
-
STAGE_DRIZZLE
public static final int STAGE_DRIZZLE- See Also:
-
STAGE_BLIZZARD
public static final int STAGE_BLIZZARD- See Also:
-
STAGE_TROPICAL_STORM
public static final int STAGE_TROPICAL_STORM- See Also:
-
STAGE_INTERMEZZO
public static final int STAGE_INTERMEZZO- See Also:
-
STAGE_MODDED
public static final int STAGE_MODDED- See Also:
-
STAGE_KATEBOB_STORM
public static final int STAGE_KATEBOB_STORM- See Also:
-
STAGE_MAX
public static final int STAGE_MAX- See Also:
-
FRONT_STRENGTH_THRESHOLD
public static final float FRONT_STRENGTH_THRESHOLD- See Also:
-
-
Constructor Details
-
WeatherPeriod
-
-
Method Details
-
setDummy
public void setDummy(boolean b) -
getMaxTemperatureInfluence
public static float getMaxTemperatureInfluence() -
setKateBobStormProgress
public void setKateBobStormProgress(float progress) -
setKateBobStormCoords
public void setKateBobStormCoords(int x, int y) -
getCloudColorReddish
-
getCloudColorGreenish
-
getCloudColorBlueish
-
getCloudColorPurplish
-
getCloudColorTropical
-
getCloudColorBlizzard
-
isRunning
public boolean isRunning() -
getDuration
public double getDuration() -
getFrontCache
-
getCurrentStageID
public int getCurrentStageID() -
getCurrentStage
-
getWeatherNoise
public double getWeatherNoise() -
getCurrentStrength
public float getCurrentStrength() -
getRainThreshold
public float getRainThreshold() -
isThunderStorm
public boolean isThunderStorm() -
isTropicalStorm
public boolean isTropicalStorm() -
isBlizzard
public boolean isBlizzard() -
getPrecipitationFinal
public float getPrecipitationFinal() -
getCloudColor
-
setCloudColor
-
getTotalProgress
public float getTotalProgress() -
getStageProgress
public float getStageProgress() -
hasTropical
public boolean hasTropical() -
hasStorm
public boolean hasStorm() -
hasBlizzard
public boolean hasBlizzard() -
hasHeavyRain
public boolean hasHeavyRain() -
getTotalStrength
public float getTotalStrength() -
getStageForWorldAge
-
getWindAngleDegrees
public float getWindAngleDegrees() -
getFrontType
public int getFrontType() -
setPrintStuff
public void setPrintStuff(boolean b) -
getPrintStuff
public boolean getPrintStuff() -
initSimulationDebug
-
initSimulationDebug
public void initSimulationDebug(ClimateManager.AirFront front, double hoursSinceStart, int doThisStageOnly, float singleStageDuration) -
startCreateModdedPeriod
public boolean startCreateModdedPeriod(boolean warmFront, float strength, float angle) -
endCreateModdedPeriod
public boolean endCreateModdedPeriod() -
stopWeatherPeriod
public void stopWeatherPeriod() -
writeNetWeatherData
- Throws:
IOException
-
readNetWeatherData
- Throws:
IOException
-
getWeatherStages
-
createAndAddModdedStage
-
createAndAddStage
-
update
public void update(double hoursSinceStart) -
save
-
load
- Throws:
IOException
-