diff options
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r-- | src/jrummikub/model/GameSettings.java | 32 |
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; + } } |