This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
JRummikub/src/jrummikub/model/IHand.java
Bennet Gerlach d276b03c39 AIUtil now needs game settings, both hand and player do not anymore
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@342 72836036-5685-4462-b002-a69064685172
2011-05-31 03:45:32 +02:00

51 lines
1.1 KiB
Java

package jrummikub.model;
/**
* Interface for the {@link Hand} model
*/
public interface IHand extends IStoneTray<Stone> {
/**
* The number of used rows
*
* @return the number of rows
*/
int getRowCount();
/**
* Gets the amount of free space in a hand row
*
* @param row
* the row number
* @return the number of stones that can fit into the row
*/
int getFreeRowSpace(int row);
/**
* Get the accumulated number of points of stones in the hand
*
* @param settings
* the game settings
*
* @return points
*/
int getStonePoints(GameSettings settings);
/**
* Tests whether it is possible to lay down an initial meld using the stones
* on the hand
*
* @param settings
* the game settings
*
* @return true if an initial meld is possible
*/
public boolean isInitialMeldPossible(GameSettings settings);
/**
* Counts the pairs of identical stones
*
* @return number of identical stone pairs
*/
public int getIdenticalStoneCount();
}