au.com.solidsoftware.multimahjong.shared
Interface Registrar

All Known Implementing Classes:
RegistrarImpl

public abstract interface Registrar
extends java.rmi.Remote

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

Author:
Michael Hart
See Also:
RegistrarImpl

Method Summary
 int createNewGame(java.lang.String name, int limit, int iconID, java.rmi.Remote playersObserver)
          See RegistrarImpl for an implementation of this method.
 MiniGame[] getGamesList(java.rmi.Remote gamesObserver)
          See RegistrarImpl for an implementation of this method.
 int joinGame(java.lang.String name, int iconID, int gameID, java.rmi.Remote gamesObserver)
          See RegistrarImpl for an implementation of this method.
 void removeGame(int gameID)
          See RegistrarImpl for an implementation of this method.
 java.rmi.Remote startGame(int gameID)
          See RegistrarImpl for an implementation of this method.
 java.rmi.Remote waitForStart(int gameID)
          See RegistrarImpl for an implementation of this method.
 

Method Detail

getGamesList

public MiniGame[] getGamesList(java.rmi.Remote gamesObserver)
                        throws java.rmi.RemoteException
See RegistrarImpl for an implementation of this method.
See Also:
RegistrarImpl

createNewGame

public int createNewGame(java.lang.String name,
                         int limit,
                         int iconID,
                         java.rmi.Remote playersObserver)
                  throws java.rmi.RemoteException
See RegistrarImpl for an implementation of this method.
See Also:
RegistrarImpl

joinGame

public int joinGame(java.lang.String name,
                    int iconID,
                    int gameID,
                    java.rmi.Remote gamesObserver)
             throws java.rmi.RemoteException
See RegistrarImpl for an implementation of this method.
See Also:
RegistrarImpl

startGame

public java.rmi.Remote startGame(int gameID)
                          throws java.rmi.RemoteException
See RegistrarImpl for an implementation of this method.
See Also:
RegistrarImpl

waitForStart

public java.rmi.Remote waitForStart(int gameID)
                             throws java.rmi.RemoteException
See RegistrarImpl for an implementation of this method.
See Also:
RegistrarImpl

removeGame

public void removeGame(int gameID)
                throws java.rmi.RemoteException
See RegistrarImpl for an implementation of this method.
See Also:
RegistrarImpl