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.
-
gameOver()
-
inform the referee that the game is over
-
playerDied(int)
-
inform the referee that a particular player is dead.
playerDied
public abstract void playerDied(int playerNum)
- inform the referee that a particular player is dead.
gameOver
public abstract void gameOver()
- inform the referee that the game is over
All Packages Class Hierarchy This Package Previous Next Index