|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A phase of the game. There are three possible states: BIDDING, PLAYING, FINISHED.
ChangeLog:
$Log: GamePhase.java,v $ Revision 1.3 2001/05/30 10:19:18 pizarro Updated Documentation. Revision 1.2 2001/05/23 13:23:24 betacarotine removed a bug in GameImpl Revision 1.1 2001/05/23 13:00:39 betacarotine Restructured the implementation of the game interface.
Method Summary | |
int |
getActivePlayer()
Returns the active player. |
java.util.List |
getCards(int direction)
Returns the cards that are in the hand of the player at the given direction. |
int |
getState()
The state of the current game. |
Method Detail |
public int getState()
public int getActivePlayer() throws InvalidGameStateException
InvalidGameStateException
- If the game is already
finished.public java.util.List getCards(int direction)
direction
- The direction of the player whose cards are to
be returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |