Package zombie
Class GameTime
java.lang.Object
zombie.GameTime
public class GameTime
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GameTime()
-
Method Summary
Modifier and Type Method Description int
daysInMonth(int year, int month)
float
getAmbient()
float
getAmbientMax()
float
getAmbientMin()
java.util.GregorianCalendar
getCalender()
int
getDawn()
int
getDay()
int
getDaysSurvived()
java.lang.String
getDeathString(IsoPlayer playerObj)
float
getDeltaMinutesPerDay()
int
getDusk()
java.lang.String
getGameModeText()
float
getGameWorldSecondsSinceLastUpdate()
int
getHour()
double
getHoursSurvived()
static GameTime
getInstance()
float
getInvMultiplier()
int
getLastCookMinute()
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()
float
getSleepMultiplier()
int
getStartDay()
int
getStartMonth()
float
getStartTimeOfDay()
int
getStartYear()
int
getTargetZombies()
boolean
getThunderStorm()
float
getTimeOfDay()
java.lang.String
getTimeSurvived(IsoPlayer playerObj)
float
getTrueMultiplier()
float
getUnmoddedMultiplier()
float
getViewDist()
float
getViewDistMax()
float
getViewDistMin()
double
getWorldAgeHours()
int
getYear()
java.lang.String
getZombieKilledText(IsoPlayer playerObj)
void
init()
boolean
isRainingToday()
boolean
isThunderDay()
float
Lerp(float start, float end, float delta)
void
lightingUpdate()
void
load()
void
load(java.io.DataInputStream input)
void
load(java.nio.ByteBuffer input)
void
RemoveZombies(int i)
void
RemoveZombiesIndiscriminate(int i)
void
save()
void
save(java.io.DataOutputStream output)
void
save(java.nio.ByteBuffer output)
void
saveToPacket(java.nio.ByteBuffer bb)
void
setAmbient(float Ambient)
void
setAmbientMax(float AmbientMax)
void
setAmbientMin(float AmbientMin)
void
setCalender(java.util.GregorianCalendar Calender)
void
setDawn(int dawn)
void
setDay(int Day)
void
setDusk(int dusk)
void
setHoursSurvived(double HoursSurvived)
static void
setInstance(GameTime aInstance)
void
setLastCookMinute(int LastCookMinute)
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
setNight(float NightTint)
void
setNightMax(float max)
void
setNightMin(float min)
void
setNightsSurvived(int NightsSurvived)
void
setNightTint(float NightTint)
void
setRainingToday(boolean RainingToday)
void
setSleepMultiplier(float SleepMultiplier)
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
setViewDist(float ViewDist)
void
setViewDistMax(float ViewDistMax)
void
setViewDistMin(float ViewDistMin)
void
setYear(int Year)
void
thunderStart()
void
thunderStart(boolean big)
void
thunderStop()
float
TimeLerp(float startVal, float endVal, float startTime, float endTime)
float
TimeLerpCompressed(float startVal, float endVal, float startTime, float endTime)
void
update(boolean bSleeping)
boolean
updateLightSource(boolean bDo)
void
UpdateZombieCount()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
millingtune
public java.lang.String millingtune -
zombieTune
public java.lang.String zombieTune -
instance
-
HelicopterTime1Start
public int HelicopterTime1Start -
HelicopterTime1End
public int HelicopterTime1End -
HelicopterDay1
public int HelicopterDay1 -
HelicopterTime2Start
public float HelicopterTime2Start -
HelicopterTime2End
public float HelicopterTime2End -
HelicopterDay2
public float HelicopterDay2 -
Ambient
public float Ambient -
AmbientMax
public float AmbientMax -
AmbientMin
public float AmbientMin -
Day
public int Day -
StartDay
public int StartDay -
MaxZombieCountStart
public float MaxZombieCountStart -
MinZombieCountStart
public float MinZombieCountStart -
MaxZombieCount
public float MaxZombieCount -
MinZombieCount
public float MinZombieCount -
Month
public int Month -
StartMonth
public int StartMonth -
NightTint
public float NightTint -
TimeOfDay
public float TimeOfDay -
StartTimeOfDay
public float StartTimeOfDay -
ViewDist
public float ViewDist -
ViewDistMax
public float ViewDistMax -
ViewDistMin
public float ViewDistMin -
Year
public int Year -
StartYear
public int StartYear -
NightsSurvived
public int NightsSurvived -
HoursSurvived
public double HoursSurvived -
Calender
public java.util.GregorianCalendar Calender -
MinutesPerDayStart
public float MinutesPerDayStart -
MinutesPerDay
public float MinutesPerDay -
SleepMultiplier
public float SleepMultiplier -
LastTimeOfDay
public float LastTimeOfDay -
TargetZombies
public int TargetZombies -
LastCookMinute
public int LastCookMinute -
RainingToday
public boolean RainingToday -
FPSMultiplier
public float FPSMultiplier -
bGunFireEventToday
public boolean bGunFireEventToday -
GunFireTimes
public float[] GunFireTimes -
NumGunFireEvents
public int NumGunFireEvents -
TicksSinceStart
public long TicksSinceStart -
Moon
public float Moon -
lastPing
public long lastPing -
lastClockSync
public long lastClockSync -
ServerTimeOfDay
public float ServerTimeOfDay -
ServerLastTimeOfDay
public float ServerLastTimeOfDay -
ServerNewDays
public int ServerNewDays -
timestampForDbUpdate
public long timestampForDbUpdate -
lightSourceUpdate
public float lightSourceUpdate -
multiplierBias
public float multiplierBias -
LastLastTimeOfDay
public float LastLastTimeOfDay -
FPSMultiplier2
public float FPSMultiplier2
-
-
Constructor Details
-
GameTime
public GameTime()
-
-
Method Details
-
getInstance
-
setInstance
-
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
public java.lang.String getGameModeText() -
init
public void init() -
Lerp
public float Lerp(float start, float end, float delta) -
RemoveZombies
public void RemoveZombies(int i) -
RemoveZombiesIndiscriminate
public void RemoveZombiesIndiscriminate(int i) -
TimeLerp
public float TimeLerp(float startVal, float endVal, float startTime, float endTime) -
TimeLerpCompressed
public float TimeLerpCompressed(float startVal, float endVal, float startTime, float endTime) -
getDeltaMinutesPerDay
public float getDeltaMinutesPerDay() -
getNightMin
public float getNightMin() -
getNightMax
public float getNightMax() -
setNightMax
public void setNightMax(float max) -
setNightMin
public void setNightMin(float min) -
getMinutes
public int getMinutes() -
setMoon
public void setMoon(float moon) -
update
public void update(boolean bSleeping) -
getMinutesStamp
public long getMinutesStamp() -
thunderStart
public void thunderStart() -
thunderStart
public void thunderStart(boolean big) -
thunderStop
public void thunderStop() -
getThunderStorm
public boolean getThunderStorm() -
lightingUpdate
public void lightingUpdate() -
updateLightSource
public boolean updateLightSource(boolean bDo) -
UpdateZombieCount
public void UpdateZombieCount() -
getAmbient
public float getAmbient() -
setAmbient
public void setAmbient(float Ambient) -
getAmbientMax
public float getAmbientMax() -
setAmbientMax
public void setAmbientMax(float AmbientMax) -
getAmbientMin
public float getAmbientMin() -
setAmbientMin
public void setAmbientMin(float AmbientMin) -
getDay
public int getDay() -
setDay
public void setDay(int Day) -
getStartDay
public int getStartDay() -
setStartDay
public void setStartDay(int StartDay) -
getMaxZombieCountStart
public float getMaxZombieCountStart() -
setMaxZombieCountStart
public void setMaxZombieCountStart(float MaxZombieCountStart) -
getMinZombieCountStart
public float getMinZombieCountStart() -
setMinZombieCountStart
public void setMinZombieCountStart(float MinZombieCountStart) -
getMaxZombieCount
public float getMaxZombieCount() -
setMaxZombieCount
public void setMaxZombieCount(float MaxZombieCount) -
getMinZombieCount
public float getMinZombieCount() -
setMinZombieCount
public void setMinZombieCount(float MinZombieCount) -
getMonth
public int getMonth() -
setMonth
public void setMonth(int Month) -
getStartMonth
public int getStartMonth() -
setStartMonth
public void setStartMonth(int StartMonth) -
getNightTint
public float getNightTint() -
setNightTint
public void setNightTint(float NightTint) -
getNight
public float getNight() -
setNight
public void setNight(float NightTint) -
getTimeOfDay
public float getTimeOfDay() -
setTimeOfDay
public void setTimeOfDay(float TimeOfDay) -
getStartTimeOfDay
public float getStartTimeOfDay() -
setStartTimeOfDay
public void setStartTimeOfDay(float StartTimeOfDay) -
getViewDist
public float getViewDist() -
setViewDist
public void setViewDist(float ViewDist) -
getViewDistMax
public float getViewDistMax() -
setViewDistMax
public void setViewDistMax(float ViewDistMax) -
getViewDistMin
public float getViewDistMin() -
setViewDistMin
public void setViewDistMin(float ViewDistMin) -
getYear
public int getYear() -
setYear
public void setYear(int Year) -
getStartYear
public int getStartYear() -
setStartYear
public void setStartYear(int StartYear) -
getNightsSurvived
public int getNightsSurvived() -
setNightsSurvived
public void setNightsSurvived(int NightsSurvived) -
getWorldAgeHours
public double getWorldAgeHours() -
getHoursSurvived
public double getHoursSurvived() -
getHour
public int getHour() -
setHoursSurvived
public void setHoursSurvived(double HoursSurvived) -
getCalender
public java.util.GregorianCalendar getCalender() -
setCalender
public void setCalender(java.util.GregorianCalendar Calender) -
getMinutesPerDay
public float getMinutesPerDay() -
setMinutesPerDay
public void setMinutesPerDay(float MinutesPerDay) -
getSleepMultiplier
public float getSleepMultiplier() -
setSleepMultiplier
public void setSleepMultiplier(float SleepMultiplier) -
getLastTimeOfDay
public float getLastTimeOfDay() -
setLastTimeOfDay
public void setLastTimeOfDay(float LastTimeOfDay) -
getTargetZombies
public int getTargetZombies() -
setTargetZombies
public void setTargetZombies(int TargetZombies) -
getLastCookMinute
public int getLastCookMinute() -
setLastCookMinute
public void setLastCookMinute(int LastCookMinute) -
isRainingToday
public boolean isRainingToday() -
setRainingToday
public void setRainingToday(boolean RainingToday) -
getMultiplier
public float getMultiplier() -
getServerMultiplier
public float getServerMultiplier() -
getUnmoddedMultiplier
public float getUnmoddedMultiplier() -
getInvMultiplier
public float getInvMultiplier() -
getTrueMultiplier
public float getTrueMultiplier() -
setMultiplier
public void setMultiplier(float Multiplier) -
save
public void save() -
save
public void save(java.io.DataOutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-
save
public void save(java.nio.ByteBuffer output) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.io.DataInputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer input) throws java.io.IOException- Throws:
java.io.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
-
isThunderDay
public boolean isThunderDay() -
setThunderDay
public void setThunderDay(boolean thunderDay) -
saveToPacket
public void saveToPacket(java.nio.ByteBuffer bb) throws java.io.IOException- Throws:
java.io.IOException
-