class Settings
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
aiMode
Game mode.
|
private int |
colQuant
Range of colors to choose from.
|
private boolean |
doubleColors
Allowance of same colors.
|
private int |
maxTries
Maximum number of Tries.
|
private int |
width
Width of the row.
|
| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAiMode()
Getter for game mode.
|
int |
getColQuant()
Getter for the quantity of colors used in the game.
|
boolean |
getDoubleCol()
Getter for double color allowance.
|
int |
getMaxTries()
Getter for max. tries (guesses).
|
int |
getWidth()
Getter for the game width.
|
void |
setAiMode(boolean status)
Setter for game mode.
|
void |
setColQuant(int colQuant)
Setter for the quantity of colors used in the game.
|
void |
setDoubleCol(boolean doubleColors)
Setter for double color allowance.
|
void |
setMaxTries(int tries)
Setter for max. tries (guesses).
|
void |
setWidth(int width)
Setter for the game width.
|
private int maxTries
private int width
private int colQuant
private boolean doubleColors
private boolean aiMode
public boolean getAiMode()
public void setAiMode(boolean status)
status - True = AI: Codebreaker, Human: Codemaker.public int getMaxTries()
public void setMaxTries(int tries)
tries - The max. number of tries.public int getWidth()
public void setWidth(int width)
width - The width for a Row.public int getColQuant()
public void setColQuant(int colQuant)
colQuant - The number of colors used in the game.public boolean getDoubleCol()
public void setDoubleCol(boolean doubleColors)
doubleColors - True for the allowance of double colors.
False otherwise.