diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-24 01:51:56 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-24 01:51:56 +0200 |
commit | 4a98975b0da4baa4158140ba85f39ffa669ba7a8 (patch) | |
tree | 6fc390ed5b983ac8f7a70fc76967d68a3145e8f4 /src/jrummikub/model/GameSettings.java | |
parent | 92d110995488380778bd378f4297032a325dc385 (diff) | |
download | JRummikub-4a98975b0da4baa4158140ba85f39ffa669ba7a8.tar JRummikub-4a98975b0da4baa4158140ba85f39ffa669ba7a8.zip |
Calculate points on hand
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@264 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model/GameSettings.java')
-rw-r--r-- | src/jrummikub/model/GameSettings.java | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/jrummikub/model/GameSettings.java b/src/jrummikub/model/GameSettings.java index b5079d4..7d525c6 100644 --- a/src/jrummikub/model/GameSettings.java +++ b/src/jrummikub/model/GameSettings.java @@ -10,12 +10,14 @@ public class GameSettings { private List<PlayerSettings> players = new ArrayList<PlayerSettings>(); private int initialMeldThreshold; + private int jokerPoints; /** * Creates new GameSettings with default values */ public GameSettings() { initialMeldThreshold = 30; + jokerPoints = 50; } /** @@ -31,7 +33,7 @@ public class GameSettings { * Sets the initial meld threshold * * @param value - * the value to set + * the value to set */ public void setInitialMeldThreshold(int value) { initialMeldThreshold = value; @@ -45,4 +47,23 @@ public class GameSettings { public int getInitialMeldThreshold() { return initialMeldThreshold; } + + /** + * Sets the points counted for a joker + * + * @param value + * the value to set + */ + public void setJokerPoints(int value) { + jokerPoints = value; + } + + /** + * Returns the points counted for a joker + * + * @return the points + */ + public int getJokerPoints() { + return jokerPoints; + } } |