summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/IHand.java
diff options
context:
space:
mode:
authorBennet Gerlach <bennet_gerlach@web.de>2011-05-31 03:45:32 +0200
committerBennet Gerlach <bennet_gerlach@web.de>2011-05-31 03:45:32 +0200
commitd276b03c395e7c0e44740174168c0d98a8eaa06c (patch)
tree95642c255b484354769b7cb2ed4f9a65beb5a14e /src/jrummikub/model/IHand.java
parent278edc37a9861078d5ea1527695ef12766c0fb87 (diff)
downloadJRummikub-d276b03c395e7c0e44740174168c0d98a8eaa06c.tar
JRummikub-d276b03c395e7c0e44740174168c0d98a8eaa06c.zip
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
Diffstat (limited to 'src/jrummikub/model/IHand.java')
-rw-r--r--src/jrummikub/model/IHand.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/jrummikub/model/IHand.java b/src/jrummikub/model/IHand.java
index 5ac7537..c6755c7 100644
--- a/src/jrummikub/model/IHand.java
+++ b/src/jrummikub/model/IHand.java
@@ -16,7 +16,7 @@ public interface IHand extends IStoneTray<Stone> {
* Gets the amount of free space in a hand row
*
* @param row
- * the row number
+ * the row number
* @return the number of stones that can fit into the row
*/
int getFreeRowSpace(int row);
@@ -24,17 +24,23 @@ public interface IHand extends IStoneTray<Stone> {
/**
* Get the accumulated number of points of stones in the hand
*
+ * @param settings
+ * the game settings
+ *
* @return points
*/
- int getStonePoints();
+ 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();
+ public boolean isInitialMeldPossible(GameSettings settings);
/**
* Counts the pairs of identical stones