public class Day extends java.lang.Object implements SaveElement
Constructor and Description |
---|
Day()
Day manager constructor
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Draws current weather and day phase filter
|
pl.isangeles.senlin.core.day.DayPhase |
getPhase()
Returns current day phase name
|
org.w3c.dom.Element |
getSave(org.w3c.dom.Document doc)
Parses object to XML document element
|
WorldTime |
getTime()
Returns current game time
|
pl.isangeles.senlin.core.day.Weather |
getWeather()
Returns current weather
|
void |
setTime(WorldTime time)
Sets specified time as current time
|
void |
setWeather(WeatherType type,
int timerState,
int duration) |
void |
update(int delta)
Updates day manager
|
public Day() throws org.newdawn.slick.SlickException, java.io.IOException
org.newdawn.slick.SlickException
java.io.IOException
public void draw()
public void update(int delta)
delta
- Time from last update in millisecondspublic void setTime(WorldTime time)
time
- Time in millisecondspublic void setWeather(WeatherType type, int timerState, int duration)
public WorldTime getTime()
public pl.isangeles.senlin.core.day.DayPhase getPhase()
public pl.isangeles.senlin.core.day.Weather getWeather()
public org.w3c.dom.Element getSave(org.w3c.dom.Document doc)
SaveElement
getSave
in interface SaveElement
doc
- XML document for save game