org.cb.jset.server
Interface RemoteSetGameServer

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

public interface RemoteSetGameServer
extends java.rmi.Remote

A Remote server that references the different RemoteSetGame available.

Version:
$Id: RemoteSetGameServer.java 130 2004-04-15 05:18:07Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $

Method Summary
 int createGame(java.lang.String name, int nbPlayers)
          Create a game with the specified number of players.
 RemoteSetGame getGame(int id)
          Returns the game identified by the specified id.
 RemoteSetGame[] getGames()
           
 

Method Detail

getGames

public RemoteSetGame[] getGames()
                         throws java.rmi.RemoteException
Returns:
the different remote games known to this server.
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call

getGame

public RemoteSetGame getGame(int id)
                      throws java.rmi.RemoteException
Returns the game identified by the specified id.

Parameters:
id - the id of the game to return
Returns:
the game if found, or null if none found.
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call

createGame

public int createGame(java.lang.String name,
                      int nbPlayers)
               throws java.rmi.RemoteException
Create a game with the specified number of players.

Parameters:
name - the name of the game.
nbPlayers - the number of players.
Returns:
the new game id
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call


Copyright © 2004 CoffeeBreaks. All Rights Reserved.