Class Config

java.lang.Object
core.Config

public class Config extends Object
Controls which features are activated in the game. Stores configuration settings for the game (feature toggles, task number, operand range).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Standard constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns if the Lives feature is activated.
    int
    Returns the current upper limit of the operands.
    boolean
    Returns if the Round Timer feature is activated.
    int
    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 Feature
    void
    setRange(int numRange)
    Sets the upper limit (exclusive) for the operands of the tasks.
    void
    setRoundTimer(boolean stateTimer)
    Activates/deactivates the Round Timer Feature
    void
    setTasks(int numTasks)
    Sets the number of tasks per round.
    void
    setTaskTimer(boolean stateTimer)
    Activates/deactivates the Task Timer Feature

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.