
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@265 72836036-5685-4462-b002-a69064685172
32 lines
625 B
Java
32 lines
625 B
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
|
|
*
|
|
* @return points
|
|
*/
|
|
int getStonePoints();
|
|
|
|
public abstract boolean isInitialMeldPossible();
|
|
}
|