Class DaylightUpdater

java.lang.Object
games.stendhal.server.core.rp.DaylightUpdater
All Implemented Interfaces:
TurnListener

public class DaylightUpdater extends Object implements TurnListener
Manager for daylight colored zones.
  • Method Details

    • get

      public static DaylightUpdater get()
      Get the Daylight instance.
      Returns:
      singleton instance
    • manageAttributes

      public void manageAttributes(ZoneAttributes attr)
      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 interface TurnListener
      Parameters:
      currentTurn - current turn number