Package games.stendhal.server.core.rp
Class DaylightUpdater
java.lang.Object
games.stendhal.server.core.rp.DaylightUpdater
- All Implemented Interfaces:
TurnListener
Manager for daylight colored zones.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DaylightUpdaterget()Get the Daylight instance.voidMake a zone color managed by the daylight colorer.voidonTurnReached(int currentTurn) This method is called when the turn number is reached.voidUpdate the zone color according to the hour.
-
Method Details
-
get
Get the Daylight instance.- Returns:
- singleton instance
-
manageAttributes
Make a zone color managed by the daylight colorer.- Parameters:
attr- attributes of the zone
-
onTurnReached
public void onTurnReached(int currentTurn) Description copied from interface:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- current turn number
-
updateDaytimeColor
public void updateDaytimeColor()Update the zone color according to the hour.
-