org.cb.jset.server
Interface RemoteSetGame

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
JSetRemoteGameImpl

public interface RemoteSetGame
extends java.rmi.Remote

Remote interface to the GameServer.

The main method is the connect(org.cb.jset.server.RemoteSetGamePlayer) one which provides the registering client a connection with which it can interact with the current game.

Version:
$Id: RemoteSetGame.java 117 2004-04-14 23:16:04Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $

Method Summary
 RemoteSetGameConnection connect(RemoteSetGamePlayer player)
           
 int getCurrentNbPlayers()
           
 int getID()
           
 int getMaxNbPlayers()
           
 java.lang.String getName()
           
 

Method Detail

connect

public RemoteSetGameConnection connect(RemoteSetGamePlayer player)
                                throws java.rmi.RemoteException
Parameters:
player - the remote player
Returns:
the remote game connection
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.connect(org.cb.jset.SetGamePlayer)

getID

public int getID()
          throws java.rmi.RemoteException
Returns:
the game id
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getID()

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException
Returns:
the game name
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getName()

getMaxNbPlayers

public int getMaxNbPlayers()
                    throws java.rmi.RemoteException
Returns:
the max number of players
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getMaxNbPlayers()

getCurrentNbPlayers

public int getCurrentNbPlayers()
                        throws java.rmi.RemoteException
Returns:
the current number of players
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGame.getCurrentNbPlayers()


Copyright © 2004 CoffeeBreaks. All Rights Reserved.