home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / enxle1f6 / src / games / battle / server / serverboard / gamereferee.java next >
Encoding:
Java Source  |  1996-08-14  |  681 b   |  26 lines

  1. /*
  2.  * @(#)GameReferee.java
  3.  */
  4. package games.Battle.server.ServerBoard;
  5.  
  6. /**
  7.  * The game referee interface defines how the board and battle game can 
  8.  * report to a third observer what order the players died in and when the
  9.  * game is over. This allows the referee to do any cleanup tasks associated
  10.  * with the game, like announce the winner or compute ratings.
  11.  *
  12.  * @version 1.00
  13.  * @author Alex Nicolaou
  14.  * @author Jay Steele
  15.  */
  16. public interface GameReferee {
  17.     /** 
  18.      * inform the referee that a particular player is dead.
  19.      */
  20.     public void playerDied(int playerNum);
  21.     /** 
  22.      * inform the referee that the game is over
  23.      */
  24.     public void gameOver();
  25. }
  26.