Package zombie.erosion.season
Class ErosionSeason
java.lang.Object
zombie.erosion.season.ErosionSeason
public class ErosionSeason
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static int
NUM_SEASONS
static int
SEASON_AUTUMN
static int
SEASON_DEFAULT
static int
SEASON_SPRING
static int
SEASON_SUMMER
static int
SEASON_SUMMER2
static int
SEASON_WINTER
-
Constructor Summary
Constructors Constructor Description ErosionSeason()
-
Method Summary
Modifier and Type Method Description ErosionSeason
clone()
float
getDawn()
float
getDaylight()
float
getDayMeanTemperature()
float
getDayNoiseVal()
float
getDayTemperature()
float
getDusk()
double
getMaxDaylightSummer()
double
getMaxDaylightWinter()
float
getRainDayStrength()
float
getRainYearAverage()
int
getSeason()
float
getSeasonDay()
float
getSeasonDays()
java.lang.String
getSeasonName()
float
getSeasonStrength()
java.util.GregorianCalendar
getWinterStartDay(int day, int month, int year)
void
init(int _lat, int _tempMax, int _tempMin, int _tempDiff, int _seasonLag, float _noon, int _seedA, int _seedB, int _seedC)
boolean
isRainDay()
boolean
isSeason(int _season)
boolean
isSunnyDay()
boolean
isThunderDay()
static void
Reset()
void
setCurSeason(int season)
void
setDay(int _day, int _month, int _year)
void
setRain(float _jan, float _feb, float _mar, float _apr, float _may, float _jun, float _jul, float _aug, float _sep, float _oct, float _nov, float _dec)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SEASON_DEFAULT
public static final int SEASON_DEFAULT- See Also:
- Constant Field Values
-
SEASON_SPRING
public static final int SEASON_SPRING- See Also:
- Constant Field Values
-
SEASON_SUMMER
public static final int SEASON_SUMMER- See Also:
- Constant Field Values
-
SEASON_SUMMER2
public static final int SEASON_SUMMER2- See Also:
- Constant Field Values
-
SEASON_AUTUMN
public static final int SEASON_AUTUMN- See Also:
- Constant Field Values
-
SEASON_WINTER
public static final int SEASON_WINTER- See Also:
- Constant Field Values
-
NUM_SEASONS
public static final int NUM_SEASONS- See Also:
- Constant Field Values
-
-
Constructor Details
-
ErosionSeason
public ErosionSeason()
-
-
Method Details
-
init
public void init(int _lat, int _tempMax, int _tempMin, int _tempDiff, int _seasonLag, float _noon, int _seedA, int _seedB, int _seedC) -
setRain
public void setRain(float _jan, float _feb, float _mar, float _apr, float _may, float _jun, float _jul, float _aug, float _sep, float _oct, float _nov, float _dec) -
clone
- Overrides:
clone
in classjava.lang.Object
-
getMaxDaylightWinter
public double getMaxDaylightWinter() -
getMaxDaylightSummer
public double getMaxDaylightSummer() -
getDusk
public float getDusk() -
getDawn
public float getDawn() -
getDaylight
public float getDaylight() -
getDayTemperature
public float getDayTemperature() -
getDayMeanTemperature
public float getDayMeanTemperature() -
getSeason
public int getSeason() -
getSeasonName
public java.lang.String getSeasonName() -
isSeason
public boolean isSeason(int _season) -
getWinterStartDay
public java.util.GregorianCalendar getWinterStartDay(int day, int month, int year) -
getSeasonDay
public float getSeasonDay() -
getSeasonDays
public float getSeasonDays() -
getSeasonStrength
public float getSeasonStrength() -
getDayNoiseVal
public float getDayNoiseVal() -
isRainDay
public boolean isRainDay() -
getRainDayStrength
public float getRainDayStrength() -
getRainYearAverage
public float getRainYearAverage() -
isThunderDay
public boolean isThunderDay() -
isSunnyDay
public boolean isSunnyDay() -
setDay
public void setDay(int _day, int _month, int _year) -
Reset
public static void Reset() -
setCurSeason
public void setCurSeason(int season)
-