Class GameBoardTimer
java.lang.Object
games.stendhal.server.entity.mapstuff.game.GameBoardTimer
- All Implemented Interfaces:
TurnListener
Handles a time out for the game
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionGameBoardTimer(GameBoard gameBoard, int seconds)
creates a new game board timer -
Method Summary
-
Constructor Details
-
GameBoardTimer
creates a new game board timer- Parameters:
gameBoard
- gameBoard to time outseconds
- maximum number of seconds for one game
-
-
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
-
start
public void start()starts the timer -
stop
public void stop()stops the timer -
equals
-
hashCode
public int hashCode()
-