Interface games.Battle.server.ServerBoard.GameReferee
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface games.Battle.server.ServerBoard.GameReferee

public interface GameReferee
extends Object
The game referee interface defines how the board and battle game can report to a third observer what order the players died in and when the game is over. This allows the referee to do any cleanup tasks associated with the game, like announce the winner or compute ratings.

Method Index

 o gameOver()
inform the referee that the game is over
 o playerDied(int)
inform the referee that a particular player is dead.

Methods

 o playerDied
  public abstract void playerDied(int playerNum)
inform the referee that a particular player is dead.
 o gameOver
  public abstract void gameOver()
inform the referee that the game is over

All Packages  Class Hierarchy  This Package  Previous  Next  Index