zombie
Class GameTime

java.lang.Object
  extended by zombie.GameTime

public class GameTime
extends java.lang.Object

Author:
LEMMY

Field Summary
 float Ambient
           
 float AmbientMax
           
 float AmbientMin
           
 boolean bGunFireEventToday
           
 java.util.GregorianCalendar Calender
           
 int Day
           
 float FPSMultiplier
           
 float[] GunFireTimes
           
 float HelicopterDay1
           
 float HelicopterDay2
           
 float HelicopterTime1End
           
 float HelicopterTime1Start
           
 float HelicopterTime2End
           
 float HelicopterTime2Start
           
 double HoursSurvived
           
static GameTime instance
           
 int LastCookMinute
           
 float LastLastTimeOfDay
           
 float LastTimeOfDay
           
 int lightSourceUpdate
           
 float MaxZombieCount
           
 float MaxZombieCountStart
           
 java.lang.String millingtune
           
 float MinutesPerDay
           
 float MinutesPerDayStart
           
 float MinZombieCount
           
 float MinZombieCountStart
           
 int Month
           
 float Moon
           
 float multiplierBias
           
 int NightsSurvived
           
 float NightTint
           
 int NumGunFireEvents
           
 boolean RainingToday
           
 float SleepMultiplier
           
 int StartDay
           
 int StartMonth
           
 float StartTimeOfDay
           
 int StartYear
           
 int TargetZombies
           
 long TicksSinceStart
           
 float TimeOfDay
           
 float ViewDist
           
 float ViewDistMax
           
 float ViewDistMin
           
 int Year
           
 java.lang.String zombieTune
           
 
Constructor Summary
GameTime()
           
 
Method Summary
 int daysInMonth(int year, int month)
           
 float getAmbient()
           
 float getAmbientMax()
           
 float getAmbientMin()
           
 java.util.GregorianCalendar getCalender()
           
 int getDawn()
           
 int getDay()
           
 java.lang.String getDeathString()
           
 float getDeltaMinutesPerDay()
           
 int getDusk()
           
 float getGameWorldSecondsSinceLastUpdate()
           
 double getHoursSurvived()
           
static GameTime getInstance()
           
 float getInvMultiplier()
           
 int getLastCookMinute()
           
 float getLastTimeOfDay()
           
 float getMaxZombieCount()
           
 float getMaxZombieCountStart()
           
 int getMinutes()
           
 float getMinutesPerDay()
           
 float getMinZombieCount()
           
 float getMinZombieCountStart()
           
 se.krka.kahlua.vm.KahluaTable getModData()
           
 int getMonth()
           
 float getMultipliedSecondsSinceLastUpdate()
           
 float getMultiplier()
           
 float getNight()
           
 float getNightMax()
           
 float getNightMin()
           
 int getNightsSurvived()
           
 float getNightTint()
           
 float getRealworldSecondsSinceLastUpdate()
           
 float getSleepMultiplier()
           
 int getStartDay()
           
 int getStartMonth()
           
 float getStartTimeOfDay()
           
 int getStartYear()
           
 int getTargetZombies()
           
 float getTimeOfDay()
           
 java.lang.String getTimeSurvived()
           
 float getTrueMultiplier()
           
 float getUnmoddedMultiplier()
           
 float getViewDist()
           
 float getViewDistMax()
           
 float getViewDistMin()
           
 int getYear()
           
 void init()
           
 boolean isRainingToday()
           
 float Lerp(float start, float end, float delta)
           
 void load(java.io.DataInputStream input)
           
 void RemoveZombies(int i)
          Deprecated.  
 void RemoveZombiesIndiscriminate(int i)
           
 void save(java.io.DataOutputStream output)
           
 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 setTimeOfDay(float TimeOfDay)
           
 void setViewDist(float ViewDist)
           
 void setViewDistMax(float ViewDistMax)
           
 void setViewDistMin(float ViewDistMin)
           
 void setYear(int Year)
           
 float TimeLerp(float startVal, float endVal, float startTime, float endTime)
           
 float TimeLerpCompressed(float startVal, float endVal, float startTime, float endTime)
           
 void update(boolean bSleeping)
           
 void UpdateZombieCount()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

millingtune

public java.lang.String millingtune

zombieTune

public java.lang.String zombieTune

instance

public static GameTime instance

HelicopterTime1Start

public float HelicopterTime1Start

HelicopterTime1End

public float HelicopterTime1End

HelicopterDay1

public float 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

lightSourceUpdate

public int lightSourceUpdate

multiplierBias

public float multiplierBias

LastLastTimeOfDay

public float LastLastTimeOfDay
Constructor Detail

GameTime

public GameTime()
Method Detail

getInstance

public static GameTime getInstance()
Returns:
the instance

setInstance

public static void setInstance(GameTime aInstance)
Parameters:
aInstance - the instance to set

getRealworldSecondsSinceLastUpdate

public float getRealworldSecondsSinceLastUpdate()

getMultipliedSecondsSinceLastUpdate

public float getMultipliedSecondsSinceLastUpdate()

getGameWorldSecondsSinceLastUpdate

public float getGameWorldSecondsSinceLastUpdate()

daysInMonth

public int daysInMonth(int year,
                       int month)

getDeathString

public java.lang.String getDeathString()

getTimeSurvived

public java.lang.String getTimeSurvived()

init

public void init()

Lerp

public float Lerp(float start,
                  float end,
                  float delta)

RemoveZombies

public void RemoveZombies(int i)
Deprecated. 

Parameters:
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)

UpdateZombieCount

public void UpdateZombieCount()
Deprecated. 


getAmbient

public float getAmbient()
Returns:
the Ambient

setAmbient

public void setAmbient(float Ambient)
Parameters:
Ambient - the Ambient to set

getAmbientMax

public float getAmbientMax()
Returns:
the AmbientMax

setAmbientMax

public void setAmbientMax(float AmbientMax)
Parameters:
AmbientMax - the AmbientMax to set

getAmbientMin

public float getAmbientMin()
Returns:
the AmbientMin

setAmbientMin

public void setAmbientMin(float AmbientMin)
Parameters:
AmbientMin - the AmbientMin to set

getDay

public int getDay()
Returns:
the Day

setDay

public void setDay(int Day)
Parameters:
Day - the Day to set

getStartDay

public int getStartDay()
Returns:
the StartDay

setStartDay

public void setStartDay(int StartDay)
Parameters:
StartDay - the StartDay to set

getMaxZombieCountStart

public float getMaxZombieCountStart()
Returns:
the MaxZombieCountStart

setMaxZombieCountStart

public void setMaxZombieCountStart(float MaxZombieCountStart)
Parameters:
MaxZombieCountStart - the MaxZombieCountStart to set

getMinZombieCountStart

public float getMinZombieCountStart()
Returns:
the MinZombieCountStart

setMinZombieCountStart

public void setMinZombieCountStart(float MinZombieCountStart)
Parameters:
MinZombieCountStart - the MinZombieCountStart to set

getMaxZombieCount

public float getMaxZombieCount()
Returns:
the MaxZombieCount

setMaxZombieCount

public void setMaxZombieCount(float MaxZombieCount)
Parameters:
MaxZombieCount - the MaxZombieCount to set

getMinZombieCount

public float getMinZombieCount()
Returns:
the MinZombieCount

setMinZombieCount

public void setMinZombieCount(float MinZombieCount)
Parameters:
MinZombieCount - the MinZombieCount to set

getMonth

public int getMonth()
Returns:
the Month

setMonth

public void setMonth(int Month)
Parameters:
Month - the Month to set

getStartMonth

public int getStartMonth()
Returns:
the StartMonth

setStartMonth

public void setStartMonth(int StartMonth)
Parameters:
StartMonth - the StartMonth to set

getNightTint

public float getNightTint()
Returns:
the NightTint

setNightTint

public void setNightTint(float NightTint)
Parameters:
NightTint - the NightTint to set

getNight

public float getNight()
Returns:
the NightTint

setNight

public void setNight(float NightTint)
Parameters:
NightTint - the NightTint to set

getTimeOfDay

public float getTimeOfDay()
Returns:
the TimeOfDay

setTimeOfDay

public void setTimeOfDay(float TimeOfDay)
Parameters:
TimeOfDay - the TimeOfDay to set

getStartTimeOfDay

public float getStartTimeOfDay()
Returns:
the StartTimeOfDay

setStartTimeOfDay

public void setStartTimeOfDay(float StartTimeOfDay)
Parameters:
StartTimeOfDay - the StartTimeOfDay to set

getViewDist

public float getViewDist()
Returns:
the ViewDist

setViewDist

public void setViewDist(float ViewDist)
Parameters:
ViewDist - the ViewDist to set

getViewDistMax

public float getViewDistMax()
Returns:
the ViewDistMax

setViewDistMax

public void setViewDistMax(float ViewDistMax)
Parameters:
ViewDistMax - the ViewDistMax to set

getViewDistMin

public float getViewDistMin()
Returns:
the ViewDistMin

setViewDistMin

public void setViewDistMin(float ViewDistMin)
Parameters:
ViewDistMin - the ViewDistMin to set

getYear

public int getYear()
Returns:
the Year

setYear

public void setYear(int Year)
Parameters:
Year - the Year to set

getStartYear

public int getStartYear()
Returns:
the StartYear

setStartYear

public void setStartYear(int StartYear)
Parameters:
StartYear - the StartYear to set

getNightsSurvived

public int getNightsSurvived()
Returns:
the NightsSurvived

setNightsSurvived

public void setNightsSurvived(int NightsSurvived)
Parameters:
NightsSurvived - the NightsSurvived to set

getHoursSurvived

public double getHoursSurvived()
Returns:
the HoursSurvived

setHoursSurvived

public void setHoursSurvived(double HoursSurvived)
Parameters:
HoursSurvived - the HoursSurvived to set

getCalender

public java.util.GregorianCalendar getCalender()
Returns:
the Calender

setCalender

public void setCalender(java.util.GregorianCalendar Calender)
Parameters:
Calender - the Calender to set

getMinutesPerDay

public float getMinutesPerDay()
Returns:
the MinutesPerDay

setMinutesPerDay

public void setMinutesPerDay(float MinutesPerDay)
Parameters:
MinutesPerDay - the MinutesPerDay to set

getSleepMultiplier

public float getSleepMultiplier()
Returns:
the SleepMultiplier

setSleepMultiplier

public void setSleepMultiplier(float SleepMultiplier)
Parameters:
SleepMultiplier - the SleepMultiplier to set

getLastTimeOfDay

public float getLastTimeOfDay()
Returns:
the LastTimeOfDay

setLastTimeOfDay

public void setLastTimeOfDay(float LastTimeOfDay)
Parameters:
LastTimeOfDay - the LastTimeOfDay to set

getTargetZombies

public int getTargetZombies()
Returns:
the TargetZombies

setTargetZombies

public void setTargetZombies(int TargetZombies)
Parameters:
TargetZombies - the TargetZombies to set

getLastCookMinute

public int getLastCookMinute()
Returns:
the LastCookMinute

setLastCookMinute

public void setLastCookMinute(int LastCookMinute)
Parameters:
LastCookMinute - the LastCookMinute to set

isRainingToday

public boolean isRainingToday()
Returns:
the RainingToday

setRainingToday

public void setRainingToday(boolean RainingToday)
Parameters:
RainingToday - the RainingToday to set

getMultiplier

public float getMultiplier()
Returns:
the Multiplier

getUnmoddedMultiplier

public float getUnmoddedMultiplier()

getInvMultiplier

public float getInvMultiplier()

getTrueMultiplier

public float getTrueMultiplier()

setMultiplier

public void setMultiplier(float Multiplier)
Parameters:
Multiplier - the Multiplier to set

save

public void save(java.io.DataOutputStream 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

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()