summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-06-20 02:19:47 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-06-20 02:19:47 +0200
commitace7175f1a57f3dc88a861842969e84efacf65ad (patch)
tree98408e214e12933fc193cc3d340aeb0f3aeda071 /src/jrummikub/model
parentfcf33eb280d64b0ce376f7fa10d508c153b2ada9 (diff)
downloadJRummikub-ace7175f1a57f3dc88a861842969e84efacf65ad.tar
JRummikub-ace7175f1a57f3dc88a861842969e84efacf65ad.zip
Continued side panel
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@499 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/GameSettings.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jrummikub/model/GameSettings.java b/src/jrummikub/model/GameSettings.java
index 7713e85..55419a4 100644
--- a/src/jrummikub/model/GameSettings.java
+++ b/src/jrummikub/model/GameSettings.java
@@ -247,4 +247,9 @@ public class GameSettings implements Serializable {
return (humans == 1);
}
+
+ public int getTotalStones() {
+ return getHighestValue() * getStoneSetNumber()
+ * getStoneColors().size() + getJokerNumber();
+ }
}