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 DaylightUpdater
get()
Get the Daylight instance.void
manageAttributes(ZoneAttributes attr)
Make a zone color managed by the daylight colorer.void
onTurnReached(int currentTurn)
This method is called when the turn number is reached.
-
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:TurnListener
This method is called when the turn number is reached.- Specified by:
onTurnReached
in interfaceTurnListener
- Parameters:
currentTurn
- current turn number
-