org.cb.jset
Interface SetGameConnection

All Known Implementing Classes:
JSetGameImpl.GameConnectionImpl

public interface SetGameConnection

An interface for a game connection.

GameConnection instances are delivered to a SetGamePlayer holder by a SetGame in order for the player to perform operations.

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

Method Summary
 void close()
          Close the game connection, effectively leaving the game.
 boolean isClosed()
          Say wether the game connection is closed or not.
 void matchSet(CardSet set)
          Used by a registered player to try to match a set of cards.
 

Method Detail

matchSet

public void matchSet(CardSet set)
              throws MatchingException
Used by a registered player to try to match a set of cards.

Parameters:
set - the set to try to match.
Throws:
MatchingException - if the set doesn't match or if a card is not on the board.

close

public void close()
Close the game connection, effectively leaving the game.


isClosed

public boolean isClosed()
Say wether the game connection is closed or not.

Returns:
true if the connection is closed, false otherwise.


Copyright © 2004 CoffeeBreaks. All Rights Reserved.