de.kosi.model.game
Interface GamePhase

All Known Implementing Classes:
AfterGame, Bidding, Claiming, Playing

public interface GamePhase

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.


 

Version:
$Revision: 1.3 $ ($Date: 2001/05/30 10:19:18 $)
Author:
PG KoSI, FB Informatik, Universitaet Oldenburg

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

getState

public int getState()
The state of the current game. There are three possible states: BIDDING, PLAYING, FINISHED.
Returns:
The state of the current game.

getActivePlayer

public int getActivePlayer()
                    throws InvalidGameStateException
Returns the active player.
Returns:
The active player.
Throws:
InvalidGameStateException - If the game is already finished.

getCards

public java.util.List getCards(int direction)
Returns the cards that are in the hand of the player at the given direction.
Parameters:
direction - The direction of the player whose cards are to be returned.
Returns:
A list of cards.