From ae9ce59d36eed2b133977d37ab5e73a844ef334c Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Mon, 30 May 2011 19:08:33 +0200 Subject: 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 --- src/jrummikub/model/GameSettings.java | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'src/jrummikub/model') 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 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(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 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; + } } -- cgit v1.2.3