au.com.solidsoftware.multimahjong.shared
Interface RefereeIntf

All Known Implementing Classes:
Referee

public abstract interface RefereeIntf
extends java.rmi.Remote

RefereeIntf is an interface that is implemented by Referee. As such, RefereeIntf just declares the methods that can be called from the Referee using RMI.

Author:
Michael Hart
See Also:
Referee

Method Summary
 int addPlayer(ObserverIntf observer, java.lang.String name, int iconID)
          See Referee for an implementation of this method.
 void beginGame()
          See Referee for an implementation of this method.
 void determineRobKong(int willRob, int playerPosition, int currentPlayer)
          See Referee for an implementation of this method.
 void exitGame()
          See Referee for an implementation of this method.
 int getLimit()
          See Referee for an implementation of this method.
 MiniPlayer[] getPlayers()
          See Referee for an implementation of this method.
 int getPos()
          See Referee for an implementation of this method.
 int[] getPositions()
          See Referee for an implementation of this method.
 Wall getWall()
          See Referee for an implementation of this method.
 void initServer()
          See Referee for an implementation of this method.
 void placePlayerAction(Moves currentMove, int action)
          See Referee for an implementation of this method.
 void placeSelection(int selectionNo, int playerNo, int currentPlayer)
          See Referee for an implementation of this method.
 

Method Detail

getPlayers

public MiniPlayer[] getPlayers()
                        throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

getPositions

public int[] getPositions()
                   throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

getLimit

public int getLimit()
             throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

addPlayer

public int addPlayer(ObserverIntf observer,
                     java.lang.String name,
                     int iconID)
              throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

beginGame

public void beginGame()
               throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

initServer

public void initServer()
                throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

getPos

public int getPos()
           throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

getWall

public Wall getWall()
             throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

placeSelection

public void placeSelection(int selectionNo,
                           int playerNo,
                           int currentPlayer)
                    throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

placePlayerAction

public void placePlayerAction(Moves currentMove,
                              int action)
                       throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

determineRobKong

public void determineRobKong(int willRob,
                             int playerPosition,
                             int currentPlayer)
                      throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee

exitGame

public void exitGame()
              throws java.rmi.RemoteException
See Referee for an implementation of this method.
See Also:
Referee