Class TurnListenerDecorator

java.lang.Object
games.stendhal.server.core.events.TurnListenerDecorator
All Implemented Interfaces:
TurnListener

public class TurnListenerDecorator extends Object implements TurnListener
a TurnListener decorator. Multiple instance can point to the same real TurnListener but will be treated as unique listeners by the set in the TurnNotifier.
Author:
hendrik
  • Constructor Details

    • TurnListenerDecorator

      public TurnListenerDecorator(TurnListener turnListener)
      creates a new TurnListenerDecorator
      Parameters:
      turnListener - the real turnlistener to delegate to
  • Method Details

    • 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