Index
All Classes and Interfaces|All Packages
A
- addCount(boolean) - Method in class core.Statistics
-
Adds a new data point to the statistic.
- alive() - Method in class core.Lives
-
Returns if the current number of lives is above 0.
C
- Calculator - Class in core
-
Generates random math tasks (addition, subtraction, multiplication, division), calculates the results and returns formatted task Strings.
- Calculator() - Constructor for class core.Calculator
-
Standard constructor.
- changeConfig(boolean, boolean, boolean, int, int, int) - Method in class core.GameController
-
Changes the saved configuration.
- changeCurrent(int) - Method in class core.Lives
-
Changes the number of remaining lives by x.
- checkResult(int) - Method in class core.Calculator
-
Checks if input equals the calculated result.
- checkTask(int) - Method in class core.GameController
-
Compares input to calculated result, prints result strings.
- Config - Class in core
-
Controls which features are activated in the game.
- Config() - Constructor for class core.Config
-
Standard constructor.
- core - package core
E
- Encourager() - Static method in class core.GamePrints
-
Returns a random, encouraging string from a given list.
- end(String) - Method in class core.RunTimer
-
Stops the task timer and prints the needed time in seconds.
- endRoundTime() - Method in class core.GameController
-
Stops the Round Timer (if active)
G
- GameController - Class in core
-
Controls the game logic and flow.
- GameController() - Constructor for class core.GameController
-
Standard constructor.
- gameEnding() - Method in class core.GameController
-
Prints round statistics and remaining lives (if active).
- GamePrints - Class in core
-
Support class for prints in the game.
- GamePrints() - Constructor for class core.GamePrints
- getCurrent() - Method in class core.Lives
-
Returns the current number of lives.
- getLength() - Method in class core.GameController
-
Returns number of tasks per round.
- getLives() - Method in class core.Config
-
Returns if the Lives feature is activated.
- getLiveUse() - Method in class core.GameController
-
returns the activation state of the lives function
- getLiving() - Method in class core.GameController
-
Returns if the game is still active (relevant for Lives feature).
- getMax() - Method in class core.Lives
-
Returns the max number of lives.
- getRange() - Method in class core.Config
-
Returns the current upper limit of the operands.
- getRes() - Method in class core.Calculator
-
Returns the correct result of the most recently generated task.
- getRightCount() - Method in class core.Statistics
-
Returns the number of tasks answered right.
- getRoundTimer() - Method in class core.Config
-
Returns if the Round Timer feature is activated.
- getTasks() - Method in class core.Config
-
Returns the current number of tasks per round.
- getTaskTimer() - Method in class core.Config
-
Returns if the Task Timer feature is activated.
- getWrongCount() - Method in class core.Statistics
-
Returns the number of tasks answered wrong.
L
- Lives - Class in core
-
Implementation of the Lives feature.
- Lives(int) - Constructor for class core.Lives
-
Standard constructor.
M
- main(String[]) - Static method in class terminal.TerminalMain
-
Starts the game loop and handles user inputs.
- Motivator() - Static method in class core.GamePrints
-
Returns a random, motivating string from a given list.
N
- newRound(int) - Method in class core.GameController
-
adds one live for the next round (if Lives feature is active).
- newTask() - Method in class core.GameController
-
Generates new math task and starts timer (if active).
- newTask(int) - Method in class core.Calculator
-
Generates new, random math tasks.
P
- printBox(String) - Static method in class core.GamePrints
-
Prints strings with a box of '#' around it.
R
- reset() - Method in class core.Statistics
-
Resets the Statistic to 0;
- resetCurrent() - Method in class core.Lives
-
Resets the current number of lives to the max value.
- RunTimer - Class in core
-
Implementation of the RunTimer feature.
- RunTimer() - Constructor for class core.RunTimer
-
Standard constructor.
S
- setLives(boolean) - Method in class core.Config
-
Activates / deactivates the Lives Feature
- setMax(int) - Method in class core.Lives
-
Changes the max value of lives.
- setRange(int) - Method in class core.Config
-
Sets the upper limit (exclusive) for the operands of the tasks.
- setRoundTimer(boolean) - Method in class core.Config
-
Activates/deactivates the Round Timer Feature
- setTasks(int) - Method in class core.Config
-
Sets the number of tasks per round.
- setTaskTimer(boolean) - Method in class core.Config
-
Activates/deactivates the Task Timer Feature
- start() - Method in class core.RunTimer
-
Starts the task timer.
- startRoundTime() - Method in class core.GameController
-
Starts the Round Timer (if active)
- Statistics - Class in core
-
Implementation of the Statistics feature.
- Statistics() - Constructor for class core.Statistics
-
Standard constructor.
T
- terminal - package terminal
- TerminalMain - Class in terminal
- TerminalMain() - Constructor for class terminal.TerminalMain
- toString() - Method in class core.Lives
-
Returns a formatted string containing current lives.
- toString() - Method in class core.Statistics
-
Returns a string representation of this object.
W
- websocket - package websocket
- WebsocketMain - Class in websocket
- WebsocketMain() - Constructor for class websocket.WebsocketMain
All Classes and Interfaces|All Packages