Package zombie
Class GameTime
java.lang.Object
zombie.GameTime
public final class GameTime
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GameTime.AnimTimer
-
Field Summary
Fields Modifier and Type Field Description PZCalendar
Calender
float
FPSMultiplier
static GameTime
instance
float
LastLastTimeOfDay
float
lightSourceUpdate
float
Moon
static float
MULTIPLIER
float
multiplierBias
int
NightsSurvived
float
PerObjectMultiplier
float
ServerLastTimeOfDay
int
ServerNewDays
float
ServerTimeOfDay
float
TimeOfDay
-
Constructor Summary
Constructors Constructor Description GameTime()
-
Method Summary
Modifier and Type Method Description int
daysInMonth(int int1, int int2)
float
getAmbient()
Deprecated.float
getAmbientMax()
float
getAmbientMin()
static float
getAnimSpeedFix()
PZCalendar
getCalender()
int
getDawn()
int
getDay()
int
getDayPlusOne()
int
getDaysSurvived()
java.lang.String
getDeathString(IsoPlayer player)
float
getDeltaMinutesPerDay()
int
getDusk()
java.lang.String
getGameModeText()
float
getGameWorldSecondsSinceLastUpdate()
int
getHelicopterDay()
int
getHelicopterDay1()
int
getHelicopterEndHour()
int
getHelicopterStartHour()
int
getHour()
double
getHoursSurvived()
static GameTime
getInstance()
float
getInvMultiplier()
float
getLastTimeOfDay()
float
getMaxZombieCount()
float
getMaxZombieCountStart()
int
getMinutes()
float
getMinutesPerDay()
long
getMinutesStamp()
float
getMinZombieCount()
float
getMinZombieCountStart()
KahluaTable
getModData()
int
getMonth()
float
getMultipliedSecondsSinceLastUpdate()
float
getMultiplier()
float
getNight()
float
getNightMax()
float
getNightMin()
int
getNightsSurvived()
float
getNightTint()
float
getRealworldSecondsSinceLastUpdate()
float
getServerMultiplier()
static long
getServerTime()
static long
getServerTimeMills()
static boolean
getServerTimeShiftIsSet()
int
getStartDay()
int
getStartMonth()
float
getStartTimeOfDay()
int
getStartYear()
boolean
getThunderStorm()
float
getTimeDelta()
float
getTimeOfDay()
java.lang.String
getTimeSurvived(IsoPlayer player)
float
getTrueMultiplier()
float
getUnmoddedMultiplier()
float
getViewDist()
float
getViewDistMax()
float
getViewDistMin()
double
getWorldAgeHours()
int
getYear()
java.lang.String
getZombieKilledText(IsoPlayer player)
void
init()
static boolean
isGamePaused()
boolean
isRainingToday()
boolean
isThunderDay()
float
Lerp(float float1, float float2, float float3)
void
load()
void
load(java.io.DataInputStream dataInputStream)
void
load(java.nio.ByteBuffer byteBuffer)
static void
receiveTimeSync(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
void
RemoveZombiesIndiscriminate(int int1)
void
save()
void
save(java.io.DataOutputStream dataOutputStream)
void
save(java.nio.ByteBuffer byteBuffer)
void
saveToPacket(java.nio.ByteBuffer byteBuffer)
void
setAmbient(float float1)
void
setAmbientMax(float float1)
void
setAmbientMin(float float1)
void
setCalender(PZCalendar pZCalendar)
void
setDawn(int int1)
void
setDay(int int1)
void
setDusk(int int1)
void
setHelicopterDay(int int1)
void
setHelicopterEndHour(int int1)
void
setHelicopterStartHour(int int1)
void
setHoursSurvived(double double1)
static void
setInstance(GameTime gameTime)
void
setLastTimeOfDay(float float1)
void
setMaxZombieCount(float float1)
void
setMaxZombieCountStart(float float1)
void
setMinutesPerDay(float float1)
void
setMinZombieCount(float float1)
void
setMinZombieCountStart(float float1)
void
setMonth(int int1)
void
setMoon(float float1)
void
setMultiplier(float float1)
void
setNight(float float1)
void
setNightMax(float float1)
void
setNightMin(float float1)
void
setNightsSurvived(int int1)
void
setNightTint(float float1)
static void
setServerTimeShift(long long1)
void
setStartDay(int int1)
void
setStartMonth(int int1)
void
setStartTimeOfDay(float float1)
void
setStartYear(int int1)
void
setTargetZombies(int int1)
void
setThunderDay(boolean boolean1)
void
setTimeOfDay(float float1)
void
setViewDistMax(float float1)
void
setViewDistMin(float float1)
void
setYear(int int1)
static void
syncServerTime(long long1, long long2, long long3)
float
TimeLerp(float float1, float float2, float float3, float float4)
void
update(boolean boolean1)
void
updateCalendar(int int1, int int2, int int3, int int4, int int5)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
MULTIPLIER
public static final float MULTIPLIER- See Also:
- Constant Field Values
-
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 long1, long long2, long long3) -
getServerTime
public static long getServerTime() -
getServerTimeMills
public static long getServerTimeMills() -
getServerTimeShiftIsSet
public static boolean getServerTimeShiftIsSet() -
setServerTimeShift
public static void setServerTimeShift(long long1) -
receiveTimeSync
-
getRealworldSecondsSinceLastUpdate
public float getRealworldSecondsSinceLastUpdate() -
getMultipliedSecondsSinceLastUpdate
public float getMultipliedSecondsSinceLastUpdate() -
getGameWorldSecondsSinceLastUpdate
public float getGameWorldSecondsSinceLastUpdate() -
daysInMonth
public int daysInMonth(int int1, int int2) -
getDeathString
-
getDaysSurvived
public int getDaysSurvived() -
getTimeSurvived
-
getZombieKilledText
-
getGameModeText
public java.lang.String getGameModeText() -
init
public void init() -
Lerp
public float Lerp(float float1, float float2, float float3) -
RemoveZombiesIndiscriminate
public void RemoveZombiesIndiscriminate(int int1) -
TimeLerp
public float TimeLerp(float float1, float float2, float float3, float float4) -
getDeltaMinutesPerDay
public float getDeltaMinutesPerDay() -
getNightMin
public float getNightMin() -
setNightMin
public void setNightMin(float float1) -
getNightMax
public float getNightMax() -
setNightMax
public void setNightMax(float float1) -
getMinutes
public int getMinutes() -
setMoon
public void setMoon(float float1) -
update
public void update(boolean boolean1) -
getMinutesStamp
public long getMinutesStamp() -
getThunderStorm
public boolean getThunderStorm() -
getAmbient
@Deprecated public float getAmbient()Deprecated. -
setAmbient
public void setAmbient(float float1) -
getAmbientMax
public float getAmbientMax() -
setAmbientMax
public void setAmbientMax(float float1) -
getAmbientMin
public float getAmbientMin() -
setAmbientMin
public void setAmbientMin(float float1) -
getDay
public int getDay() -
getDayPlusOne
public int getDayPlusOne() -
setDay
public void setDay(int int1) -
getStartDay
public int getStartDay() -
setStartDay
public void setStartDay(int int1) -
getMaxZombieCountStart
public float getMaxZombieCountStart() -
setMaxZombieCountStart
public void setMaxZombieCountStart(float float1) -
getMinZombieCountStart
public float getMinZombieCountStart() -
setMinZombieCountStart
public void setMinZombieCountStart(float float1) -
getMaxZombieCount
public float getMaxZombieCount() -
setMaxZombieCount
public void setMaxZombieCount(float float1) -
getMinZombieCount
public float getMinZombieCount() -
setMinZombieCount
public void setMinZombieCount(float float1) -
getMonth
public int getMonth() -
setMonth
public void setMonth(int int1) -
getStartMonth
public int getStartMonth() -
setStartMonth
public void setStartMonth(int int1) -
getNightTint
public float getNightTint() -
setNightTint
public void setNightTint(float float1) -
getNight
public float getNight() -
setNight
public void setNight(float float1) -
getTimeOfDay
public float getTimeOfDay() -
setTimeOfDay
public void setTimeOfDay(float float1) -
getStartTimeOfDay
public float getStartTimeOfDay() -
setStartTimeOfDay
public void setStartTimeOfDay(float float1) -
getViewDist
public float getViewDist() -
getViewDistMax
public float getViewDistMax() -
setViewDistMax
public void setViewDistMax(float float1) -
getViewDistMin
public float getViewDistMin() -
setViewDistMin
public void setViewDistMin(float float1) -
getYear
public int getYear() -
setYear
public void setYear(int int1) -
getStartYear
public int getStartYear() -
setStartYear
public void setStartYear(int int1) -
getNightsSurvived
public int getNightsSurvived() -
setNightsSurvived
public void setNightsSurvived(int int1) -
getWorldAgeHours
public double getWorldAgeHours() -
getHoursSurvived
public double getHoursSurvived() -
setHoursSurvived
public void setHoursSurvived(double double1) -
getHour
public int getHour() -
getCalender
-
setCalender
-
updateCalendar
public void updateCalendar(int int1, int int2, int int3, int int4, int int5) -
getMinutesPerDay
public float getMinutesPerDay() -
setMinutesPerDay
public void setMinutesPerDay(float float1) -
getLastTimeOfDay
public float getLastTimeOfDay() -
setLastTimeOfDay
public void setLastTimeOfDay(float float1) -
setTargetZombies
public void setTargetZombies(int int1) -
isRainingToday
public boolean isRainingToday() -
getMultiplier
public float getMultiplier() -
getTimeDelta
public float getTimeDelta() -
getAnimSpeedFix
public static float getAnimSpeedFix() -
setMultiplier
public void setMultiplier(float float1) -
getServerMultiplier
public float getServerMultiplier() -
getUnmoddedMultiplier
public float getUnmoddedMultiplier() -
getInvMultiplier
public float getInvMultiplier() -
getTrueMultiplier
public float getTrueMultiplier() -
save
public void save() -
save
public void save(java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Throws:
java.io.IOException
-
save
public void save(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.io.DataInputStream dataInputStream) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load() -
getDawn
public int getDawn() -
setDawn
public void setDawn(int int1) -
getDusk
public int getDusk() -
setDusk
public void setDusk(int int1) -
getModData
-
isThunderDay
public boolean isThunderDay() -
setThunderDay
public void setThunderDay(boolean boolean1) -
saveToPacket
public void saveToPacket(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
getHelicopterDay1
public int getHelicopterDay1() -
getHelicopterDay
public int getHelicopterDay() -
setHelicopterDay
public void setHelicopterDay(int int1) -
getHelicopterStartHour
public int getHelicopterStartHour() -
setHelicopterStartHour
public void setHelicopterStartHour(int int1) -
getHelicopterEndHour
public int getHelicopterEndHour() -
setHelicopterEndHour
public void setHelicopterEndHour(int int1) -
isGamePaused
public static boolean isGamePaused()
-