Class TurnListenerDecorator
java.lang.Object
games.stendhal.server.core.events.TurnListenerDecorator
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionTurnListenerDecorator(TurnListener turnListener)
creates a new TurnListenerDecorator -
Method Summary
Modifier and TypeMethodDescriptionvoid
onTurnReached(int currentTurn)
This method is called when the turn number is reached.
-
Constructor Details
-
TurnListenerDecorator
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 interfaceTurnListener
- Parameters:
currentTurn
- current turn number
-