summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/GameSettings.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jrummikub/model/GameSettings.java b/src/jrummikub/model/GameSettings.java
index dfd391e..2446333 100644
--- a/src/jrummikub/model/GameSettings.java
+++ b/src/jrummikub/model/GameSettings.java
@@ -28,6 +28,7 @@ public class GameSettings implements Serializable {
private int totalTime;
private boolean noLimits;
private HashSet<StoneColor> stoneColors;
+ private boolean seeHandSize;
/**
* Creates new GameSettings with default values
@@ -48,6 +49,7 @@ public class GameSettings implements Serializable {
numberOfStonesDealt = 14;
totalTime = 60;
noLimits = false;
+ seeHandSize = false;
stoneColors = new HashSet<StoneColor>(Arrays.asList(BLACK, BLUE,
ORANGE, RED));
}
@@ -184,6 +186,10 @@ public class GameSettings implements Serializable {
return noLimits;
}
+ public boolean doSeeHandSize() {
+ return seeHandSize;
+ }
+
/**
* Set whether "No-Limits" rules are used
*
@@ -194,6 +200,10 @@ public class GameSettings implements Serializable {
this.noLimits = noLimits;
}
+ public void setSeeHandSize(boolean see) {
+ seeHandSize = see;
+ }
+
/**
* Get stone colors used
*