org.cb.jset
Interface SetGamePlayer

All Superinterfaces:
java.util.EventListener, SetGameBoardListener

public interface SetGamePlayer
extends SetGameBoardListener

Interface that players of a game must implement.

A player automatically listens to the board. There's no point otherwise.

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

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.SetGameBoardListener
cardsAdded, setRemoved
 

Method Detail

getName

public java.lang.String getName()
Returns:
the name of the player.

block

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

See Also:
isBlocked()

unblock

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

See Also:
isBlocked()

isBlocked

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

Returns:
true is the player is blocked, false otherwise.

disconnect

public void disconnect()
Called to notify a disconnection from a game.



Copyright © 2004 CoffeeBreaks. All Rights Reserved.