|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmastermind.model.Settings
public class Settings
Mastermind Settings: Hilfsobjekt für die Optionen
Field Summary | |
---|---|
static int |
ANZ_COLOR_MAX
Maximale Anzahl Farben |
static int |
ANZ_COLOR_MIN
Minimale Anzahl Farben |
static int |
ANZ_DESIGN_MAX
Maximale Anzahl Design |
static int |
ANZ_GUESS_MAX
Maximale Anzahl Rateversuchen |
static int |
ANZ_GUESS_MIN
Minimale Anzahl Rateversuchen |
static int |
ANZ_PEG_MAX
Maximale Anzahl Steckplätze |
static int |
ANZ_PEG_MIN
Minimale Anzahl Steckplätze |
Constructor Summary | |
---|---|
Settings()
Default Konstruktor |
Method Summary | |
---|---|
boolean |
getAllowDuplicateColor()
Gibt zurück ob doppelte Farben erlaubt sind |
int |
getDesign()
Gibt die ID des verwendete Design zurück |
int |
getNumberOfColors()
Gibt die Anzahl mögliche Farben zurück |
int |
getNumberOfPegs()
Gibt die Anzahl Steckplätze zurück |
int |
getNumberOfRows()
Gibt die Anzahl Zeilen zurück |
void |
setAllowDuplicateColor(boolean allowDuplicateColor)
Erlaubt / sperrt die Option doppelte Farben |
void |
setDesign(int idDesign)
Setzt das zu verwendende Design |
void |
setNumberOfColors(int numberOfColors)
Setzt die Anzahl der möglichen Farben |
void |
setNumberOfPegs(int numberOfPegs)
Setzt die Anzahl Steckplätze |
void |
setNumberOfRows(int numberOfRows)
Setzt die Anzahl Zeilen |
void |
setSettings(int numberOfColors,
boolean allowDuplicateColor,
int numberOfPegs,
int numberOfRows)
Set Mastermind Settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ANZ_COLOR_MIN
public static final int ANZ_COLOR_MAX
public static final int ANZ_PEG_MIN
public static final int ANZ_PEG_MAX
public static final int ANZ_GUESS_MIN
public static final int ANZ_GUESS_MAX
public static final int ANZ_DESIGN_MAX
Constructor Detail |
---|
public Settings()
Method Detail |
---|
public void setSettings(int numberOfColors, boolean allowDuplicateColor, int numberOfPegs, int numberOfRows) throws java.lang.Exception
numberOfColors
- Anzahl FarbenallowDuplicateColor
- Doppelte Farben erlaubtnumberOfPegs
- Anzahl SteckplätzenumberOfRows
- Anzahl Zeilen zum Raten
java.lang.Exception
- IllegalArgumentExceptionpublic int getNumberOfColors()
public void setNumberOfColors(int numberOfColors) throws java.lang.Exception
numberOfColors
- the numberOfColors to set
java.lang.Exception
- IllegalArgumentExceptionpublic int getNumberOfPegs()
public void setNumberOfPegs(int numberOfPegs) throws java.lang.Exception
numberOfPegs
- the numberOfPegs to set
java.lang.Exception
- IllegalArgumentExceptionpublic boolean getAllowDuplicateColor()
public void setAllowDuplicateColor(boolean allowDuplicateColor)
allowDuplicateColor
- the allowDuplicateColor to setpublic int getNumberOfRows()
public void setNumberOfRows(int numberOfRows) throws java.lang.Exception
numberOfRows
- the numberOfRows to set
java.lang.Exception
- IllegalArgumentExceptionpublic int getDesign()
public void setDesign(int idDesign)
idDesign
- ID des zu verwendenden Design
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |