|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public void matchSet(CardSet set) throws MatchingException
set
- the set to try to match.
MatchingException
- if the set doesn't match or if a card is not on the board.public void close()
public boolean isClosed()
true
if the connection is closed, false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |