Class Config
java.lang.Object
core.Config
Controls which features are activated in the game.
Stores configuration settings for the game (feature toggles, task number, operand range).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getLives()
Returns if the Lives feature is activated.int
getRange()
Returns the current upper limit of the operands.boolean
Returns if the Round Timer feature is activated.int
getTasks()
Returns the current number of tasks per round.boolean
Returns if the Task Timer feature is activated.void
setLives
(boolean stateLives) Activates / deactivates the Lives Featurevoid
setRange
(int numRange) Sets the upper limit (exclusive) for the operands of the tasks.void
setRoundTimer
(boolean stateTimer) Activates/deactivates the Round Timer Featurevoid
setTasks
(int numTasks) Sets the number of tasks per round.void
setTaskTimer
(boolean stateTimer) Activates/deactivates the Task Timer Feature
-
Constructor Details
-
Config
public Config()Standard constructor.
-
-
Method Details
-
setTasks
public void setTasks(int numTasks) Sets the number of tasks per round. -
setRange
public void setRange(int numRange) Sets the upper limit (exclusive) for the operands of the tasks. -
setLives
public void setLives(boolean stateLives) Activates / deactivates the Lives Feature -
setTaskTimer
public void setTaskTimer(boolean stateTimer) Activates/deactivates the Task Timer Feature -
setRoundTimer
public void setRoundTimer(boolean stateTimer) Activates/deactivates the Round Timer Feature -
getTasks
public int getTasks()Returns the current number of tasks per round. -
getRange
public int getRange()Returns the current upper limit of the operands. -
getLives
public boolean getLives()Returns if the Lives feature is activated. -
getTaskTimer
public boolean getTaskTimer()Returns if the Task Timer feature is activated. -
getRoundTimer
public boolean getRoundTimer()Returns if the Round Timer feature is activated.
-