summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/GameSettings.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/jrummikub/model/GameSettings.java b/src/jrummikub/model/GameSettings.java
index 7d525c6..0feff26 100644
--- a/src/jrummikub/model/GameSettings.java
+++ b/src/jrummikub/model/GameSettings.java
@@ -11,6 +11,7 @@ public class GameSettings {
private int initialMeldThreshold;
private int jokerPoints;
+ private int jokerNumber;
/**
* Creates new GameSettings with default values
@@ -18,6 +19,7 @@ public class GameSettings {
public GameSettings() {
initialMeldThreshold = 30;
jokerPoints = 50;
+ jokerNumber = 2;
}
/**
@@ -66,4 +68,22 @@ public class GameSettings {
public int getJokerPoints() {
return jokerPoints;
}
+
+ /**
+ * Sets the number of jokers in game
+ *
+ * @param value
+ */
+ public void setJokerNumber(int value) {
+ jokerNumber = value;
+ }
+
+ /**
+ * Returns the number of jokers
+ *
+ * @return the number of jokers
+ */
+ public int getJokerNumber() {
+ return jokerNumber;
+ }
}