summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-30 19:08:33 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-30 19:08:33 +0200
commitae9ce59d36eed2b133977d37ab5e73a844ef334c (patch)
treea64d467c9e1852b6df663c72878285c02850ffa5 /src/jrummikub/model
parent498c2529bdd1b35406412a4b1c96f887871646f6 (diff)
downloadJRummikub-ae9ce59d36eed2b133977d37ab5e73a844ef334c.tar
JRummikub-ae9ce59d36eed2b133977d37ab5e73a844ef334c.zip
Warnings tauchen auf, wenn man beim Einstellen Unfug macht
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@325 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/GameSettings.java32
1 files changed, 26 insertions, 6 deletions
diff --git a/src/jrummikub/model/GameSettings.java b/src/jrummikub/model/GameSettings.java
index 193188f..d571a93 100644
--- a/src/jrummikub/model/GameSettings.java
+++ b/src/jrummikub/model/GameSettings.java
@@ -17,7 +17,8 @@ public class GameSettings {
private int jokerPoints;
private int jokerNumber;
private int highestCard;
- private int stoneSets;
+ private int stoneSetNumber;
+ private int numberOfStonesDealt;
private boolean noLimits;
private Set<StoneColor> stoneColors;
@@ -29,7 +30,8 @@ public class GameSettings {
jokerPoints = 50;
jokerNumber = 2;
highestCard = 13;
- stoneSets = 2;
+ stoneSetNumber = 2;
+ numberOfStonesDealt = 14;
noLimits = false;
stoneColors = new HashSet<StoneColor>(Arrays.asList(BLACK, BLUE,
ORANGE, RED));
@@ -124,8 +126,8 @@ public class GameSettings {
*
* @return sets of stones in use
*/
- public int getStoneSets() {
- return stoneSets;
+ public int getStoneSetNumber() {
+ return stoneSetNumber;
}
/**
@@ -134,8 +136,8 @@ public class GameSettings {
* @param stoneSets
* sets of stones in use
*/
- public void setStoneSets(int stoneSets) {
- this.stoneSets = stoneSets;
+ public void setStoneSetNumber(int stoneSets) {
+ this.stoneSetNumber = stoneSets;
}
/**
@@ -175,4 +177,22 @@ public class GameSettings {
public void setStoneColors(Set<StoneColor> stoneColors) {
this.stoneColors = stoneColors;
}
+
+ /**
+ * Get number of stones dealt at game start
+ *
+ * @return numberOfStonesDealt
+ */
+ public int getNumberOfStonesDealt() {
+ return numberOfStonesDealt;
+ }
+
+ /**
+ * Set number of stones dealt at game start
+ *
+ * @param number
+ */
+ public void setNumberOfStonesDealt(int number) {
+ numberOfStonesDealt = number;
+ }
}