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
This commit is contained in:
Ida Massow 2011-05-30 19:08:33 +02:00
parent 498c2529bd
commit ae9ce59d36
5 changed files with 96 additions and 19 deletions

View file

@ -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;
}
}