Class WeatherPeriod
java.lang.Object
zombie.iso.weather.WeatherPeriod
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAndAddModdedStage
(String moddedID, double _duration) createAndAddStage
(int typeid, double _duration) boolean
int
float
double
int
static float
float
boolean
float
getStageForWorldAge
(double worldAgeHours) float
float
float
double
float
boolean
boolean
boolean
hasStorm()
boolean
protected void
init
(ClimateManager.AirFront airFront, double double0, int int0, int int1, int int2) protected void
init
(ClimateManager.AirFront airFront, double double0, int int0, int int1, int int2, int int3, float float0) void
initSimulationDebug
(ClimateManager.AirFront front, double hoursSinceStart) void
initSimulationDebug
(ClimateManager.AirFront front, double hoursSinceStart, int doThisStageOnly, float singleStageDuration) boolean
boolean
boolean
boolean
void
load
(DataInputStream input, int worldVersion) void
readNetWeatherData
(ByteBuffer input) protected void
reseed
(int int2, int int3, int int4) void
save
(DataOutputStream output) IOvoid
setCloudColor
(ClimateColorInfo cloudcol) void
setDummy
(boolean b) void
setKateBobStormCoords
(int x, int y) void
setKateBobStormProgress
(float progress) void
setPrintStuff
(boolean b) boolean
startCreateModdedPeriod
(boolean warmFront, float strength, float angle) void
void
update
(double hoursSinceStart) void
writeNetWeatherData
(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) -
init
-
init
protected void init(ClimateManager.AirFront airFront, double double0, int int0, int int1, int int2, int int3, float float0) -
reseed
protected void reseed(int int2, int int3, int int4) -
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
-