org.cb.jset.server
Interface RemoteSetGamePlayer

All Superinterfaces:
java.rmi.Remote, RemoteSetGameBoardListener

public interface RemoteSetGamePlayer
extends java.rmi.Remote, RemoteSetGameBoardListener

Interface for the clients to play remotely a jset game. Defines the callbacks hooks made from the RemoteSetGame implementation to the remote client implementing this interface.

Version:
$Id: RemoteSetGamePlayer.java 118 2004-04-14 23:17:27Z jerome $
Author:
jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
See Also:
RemoteSetGame.connect(org.cb.jset.server.RemoteSetGamePlayer)

Method Summary
 void block()
          Called by a game when the player should be blocked.
 void disconnect()
          Called to notify a disconnection from a game.
 java.lang.String getName()
           
 boolean isBlocked()
          A blocked player doesn't have the right to play.
 void unblock()
          Called by a game when the player should be unblocked.
 
Methods inherited from interface org.cb.jset.server.RemoteSetGameBoardListener
cardsAdded, setRemoved
 

Method Detail

getName

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

block

public void block()
           throws java.rmi.RemoteException
Called by a game when the player should be blocked.

Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGamePlayer.block()

unblock

public void unblock()
             throws java.rmi.RemoteException
Called by a game when the player should be unblocked.

Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGamePlayer.unblock()

isBlocked

public boolean isBlocked()
                  throws java.rmi.RemoteException
A blocked player doesn't have the right to play.

Returns:
true is the player is blocked, false otherwise.
Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGamePlayer.isBlocked()

disconnect

public void disconnect()
                throws java.rmi.RemoteException
Called to notify a disconnection from a game.

Throws:
java.rmi.RemoteException - upon communication related exception on this remote call
See Also:
SetGamePlayer.disconnect()


Copyright © 2004 CoffeeBreaks. All Rights Reserved.