Class GameTime
java.lang.Object
zombie.GameTime
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
static GameTime
float
float
float
static final float
float
int
float
float
int
float
float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
daysInMonth
(int year, int month) float
Deprecated.float
float
int
getDawn()
int
getDay()
int
int
getDeathString
(IsoPlayer playerObj) float
int
getDusk()
float
int
int
int
int
int
getHour()
double
static GameTime
float
float
float
float
int
float
long
float
float
se.krka.kahlua.vm.KahluaTable
int
getMonth()
float
float
float
getMultiplierFromTimeDelta
(float float0) float
getNight()
float
float
int
float
float
float
static long
static long
static boolean
int
int
int
float
int
float
boolean
float
float
getTimeDeltaFromMultiplier
(float float0) float
getTimeSurvived
(IsoPlayer playerObj) float
float
float
float
float
double
double
int
getYear()
getZombieKilledText
(IsoPlayer playerObj) void
init()
static boolean
boolean
boolean
float
Lerp
(float start, float end, float delta) void
load()
void
load
(DataInputStream input) void
load
(ByteBuffer input) void
RemoveZombiesIndiscriminate
(int i) void
save()
void
save
(DataOutputStream output) void
save
(ByteBuffer output) void
void
setAmbient
(float _Ambient) void
setAmbientMax
(float _AmbientMax) void
setAmbientMin
(float _AmbientMin) void
setCalender
(PZCalendar _Calender) void
setDawn
(int _dawn) void
setDay
(int _Day) void
setDusk
(int _dusk) void
setHelicopterDay
(int day) void
setHelicopterEndHour
(int hour) void
setHelicopterStartHour
(int hour) void
setHoursSurvived
(double _HoursSurvived) static void
setInstance
(GameTime aInstance) void
setLastTimeOfDay
(float _LastTimeOfDay) void
setMaxZombieCount
(float _MaxZombieCount) void
setMaxZombieCountStart
(float _MaxZombieCountStart) void
setMinutesPerDay
(float _MinutesPerDay) void
setMinZombieCount
(float _MinZombieCount) void
setMinZombieCountStart
(float _MinZombieCountStart) void
setMonth
(int _Month) void
setMoon
(float moon) void
setMultiplier
(float _Multiplier) void
setNightMax
(float max) void
setNightMin
(float min) void
setNightsSurvived
(int _NightsSurvived) static void
setServerTimeShift
(long tshift) void
setStartDay
(int _StartDay) void
setStartMonth
(int _StartMonth) void
setStartTimeOfDay
(float _StartTimeOfDay) void
setStartYear
(int _StartYear) void
setTargetZombies
(int _TargetZombies) void
setThunderDay
(boolean _thunderDay) void
setTimeOfDay
(float _TimeOfDay) void
setViewDistMax
(float _ViewDistMax) void
setViewDistMin
(float _ViewDistMin) void
setYear
(int _Year) static void
syncServerTime
(long timeClientSend, long timeServer, long timeClientReceive) float
TimeLerp
(float startVal, float endVal, float startTime, float endTime) void
update
(boolean bSleeping) void
updateCalendar
(int year, int month, int dayOfMonth, int hourOfDay, int minute)
-
Field Details
-
MULTIPLIER
public static final float MULTIPLIER- See Also:
-
instance
-
TimeOfDay
public float TimeOfDay -
NightsSurvived
public int NightsSurvived -
Calender
-
FPSMultiplier
public float FPSMultiplier -
Moon
public float Moon -
ServerTimeOfDay
public float ServerTimeOfDay -
ServerLastTimeOfDay
public float ServerLastTimeOfDay -
ServerNewDays
public int ServerNewDays -
lightSourceUpdate
public float lightSourceUpdate -
multiplierBias
public float multiplierBias -
LastLastTimeOfDay
public float LastLastTimeOfDay -
PerObjectMultiplier
public float PerObjectMultiplier
-
-
Constructor Details
-
GameTime
public GameTime()
-
-
Method Details
-
getInstance
-
setInstance
-
syncServerTime
public static void syncServerTime(long timeClientSend, long timeServer, long timeClientReceive) -
getServerTime
public static long getServerTime() -
getServerTimeMills
public static long getServerTimeMills() -
getServerTimeShiftIsSet
public static boolean getServerTimeShiftIsSet() -
setServerTimeShift
public static void setServerTimeShift(long tshift) -
isGamePaused
public static boolean isGamePaused() -
getRealworldSecondsSinceLastUpdate
public float getRealworldSecondsSinceLastUpdate() -
getMultipliedSecondsSinceLastUpdate
public float getMultipliedSecondsSinceLastUpdate() -
getGameWorldSecondsSinceLastUpdate
public float getGameWorldSecondsSinceLastUpdate() -
daysInMonth
public int daysInMonth(int year, int month) -
getDeathString
-
getDaysSurvived
public int getDaysSurvived() -
getTimeSurvived
-
getZombieKilledText
-
getGameModeText
-
init
public void init() -
Lerp
public float Lerp(float start, float end, float delta) -
RemoveZombiesIndiscriminate
public void RemoveZombiesIndiscriminate(int i) -
TimeLerp
public float TimeLerp(float startVal, float endVal, float startTime, float endTime) -
getDeltaMinutesPerDay
public float getDeltaMinutesPerDay() -
getNightMin
public float getNightMin() -
setNightMin
public void setNightMin(float min) -
getNightMax
public float getNightMax() -
setNightMax
public void setNightMax(float max) -
getMinutes
public int getMinutes() -
setMoon
public void setMoon(float moon) -
update
public void update(boolean bSleeping) -
getMinutesStamp
public long getMinutesStamp() -
getThunderStorm
public boolean getThunderStorm() -
getAmbient
-
getSkyLightLevel
public int getSkyLightLevel() -
setAmbient
public void setAmbient(float _Ambient) -
getAmbientMax
public float getAmbientMax()- Returns:
- the AmbientMax
-
setAmbientMax
public void setAmbientMax(float _AmbientMax) -
getAmbientMin
public float getAmbientMin()- Returns:
- the AmbientMin
-
setAmbientMin
public void setAmbientMin(float _AmbientMin) -
getDay
public int getDay()- Returns:
- the Day
-
setDay
public void setDay(int _Day) -
getDayPlusOne
public int getDayPlusOne() -
getStartDay
public int getStartDay()- Returns:
- the StartDay
-
setStartDay
public void setStartDay(int _StartDay) -
getMaxZombieCountStart
public float getMaxZombieCountStart()- Returns:
- the MaxZombieCountStart
-
setMaxZombieCountStart
public void setMaxZombieCountStart(float _MaxZombieCountStart) -
getMinZombieCountStart
public float getMinZombieCountStart()- Returns:
- the MinZombieCountStart
-
setMinZombieCountStart
public void setMinZombieCountStart(float _MinZombieCountStart) -
getMaxZombieCount
public float getMaxZombieCount()- Returns:
- the MaxZombieCount
-
setMaxZombieCount
public void setMaxZombieCount(float _MaxZombieCount) -
getMinZombieCount
public float getMinZombieCount()- Returns:
- the MinZombieCount
-
setMinZombieCount
public void setMinZombieCount(float _MinZombieCount) -
getMonth
public int getMonth()- Returns:
- the Month
-
setMonth
public void setMonth(int _Month) -
getStartMonth
public int getStartMonth()- Returns:
- the StartMonth
-
setStartMonth
public void setStartMonth(int _StartMonth) -
getNightTint
public float getNightTint()- Returns:
- the NightTint
-
getNight
public float getNight()- Returns:
- the NightTint
-
getTimeOfDay
public float getTimeOfDay()- Returns:
- the TimeOfDay
-
setTimeOfDay
public void setTimeOfDay(float _TimeOfDay) -
getStartTimeOfDay
public float getStartTimeOfDay()- Returns:
- the StartTimeOfDay
-
setStartTimeOfDay
public void setStartTimeOfDay(float _StartTimeOfDay) -
getViewDist
public float getViewDist()- Returns:
- the ViewDist
-
getViewDistMax
public float getViewDistMax()- Returns:
- the ViewDistMax
-
setViewDistMax
public void setViewDistMax(float _ViewDistMax) -
getViewDistMin
public float getViewDistMin()- Returns:
- the ViewDistMin
-
setViewDistMin
public void setViewDistMin(float _ViewDistMin) -
getYear
public int getYear()- Returns:
- the Year
-
setYear
public void setYear(int _Year) -
getStartYear
public int getStartYear()- Returns:
- the StartYear
-
setStartYear
public void setStartYear(int _StartYear) -
getNightsSurvived
public int getNightsSurvived()- Returns:
- the NightsSurvived
-
setNightsSurvived
public void setNightsSurvived(int _NightsSurvived) -
getWorldAgeDaysSinceBegin
public double getWorldAgeDaysSinceBegin() -
getWorldAgeHours
public double getWorldAgeHours() -
getHoursSurvived
public double getHoursSurvived()- Returns:
- the HoursSurvived
-
setHoursSurvived
public void setHoursSurvived(double _HoursSurvived) -
getHour
public int getHour() -
getCalender
- Returns:
- the Calender
-
setCalender
-
updateCalendar
public void updateCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute) -
getMinutesPerDay
public float getMinutesPerDay()- Returns:
- the MinutesPerDay
-
setMinutesPerDay
public void setMinutesPerDay(float _MinutesPerDay) -
getLastTimeOfDay
public float getLastTimeOfDay()- Returns:
- the LastTimeOfDay
-
setLastTimeOfDay
public void setLastTimeOfDay(float _LastTimeOfDay) -
setTargetZombies
public void setTargetZombies(int _TargetZombies) -
isRainingToday
public boolean isRainingToday()- Returns:
- the RainingToday
-
getMultiplier
public float getMultiplier()- Returns:
- the Multiplier
-
setMultiplier
public void setMultiplier(float _Multiplier) -
getTimeDelta
public float getTimeDelta() -
getTimeDeltaFromMultiplier
public float getTimeDeltaFromMultiplier(float float0) -
getMultiplierFromTimeDelta
public float getMultiplierFromTimeDelta(float float0) -
getServerMultiplier
public float getServerMultiplier() -
getUnmoddedMultiplier
public float getUnmoddedMultiplier() -
getInvMultiplier
public float getInvMultiplier() -
getTrueMultiplier
public float getTrueMultiplier() -
getThirtyFPSMultiplier
public float getThirtyFPSMultiplier() -
save
public void save() -
save
- Throws:
IOException
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
load
public void load() -
getDawn
public int getDawn() -
setDawn
public void setDawn(int _dawn) -
getDusk
public int getDusk() -
setDusk
public void setDusk(int _dusk) -
getModData
public se.krka.kahlua.vm.KahluaTable getModData() -
isThunderDay
public boolean isThunderDay() -
setThunderDay
public void setThunderDay(boolean _thunderDay) -
saveToPacket
- Throws:
IOException
-
getHelicopterDay1
public int getHelicopterDay1() -
getHelicopterDay
public int getHelicopterDay() -
setHelicopterDay
public void setHelicopterDay(int day) -
getHelicopterStartHour
public int getHelicopterStartHour() -
setHelicopterStartHour
public void setHelicopterStartHour(int hour) -
getHelicopterEndHour
public int getHelicopterEndHour() -
setHelicopterEndHour
public void setHelicopterEndHour(int hour)
-