summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/GameSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model/GameSettings.java')
-rw-r--r--src/jrummikub/model/GameSettings.java23
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;
+ }
}