Main application class.
More...
|
static void | main (String[] args) |
| Main game loop. More...
|
|
|
| Game () |
| < An empty constructor More...
|
|
|
int | round () |
| Utility to get current round of the game. More...
|
|
int | nextRound () |
| Utility to increase and get the increased round of the game. More...
|
|
void | waitUser () |
| Utility to hold the execution of the program waiting for user input. More...
|
|
|
- Note
- Please consider not to use mutator interface. Its the abstraction killer :( We have added a bit of logic however, in order to make it a bit more safe.
|
int | getRound () |
|
void | setRound (int round) |
|
Main application class.
This class is the only public interface of the entire game.
Definition at line 45 of file Game.java.
◆ Game()
host.labyrinth.Game.Game |
( |
| ) |
|
|
package |
< An empty constructor
Definition at line 48 of file Game.java.
◆ getArguments()
static boolean host.labyrinth.Game.getArguments |
( |
String [] |
args | ) |
|
|
staticpackage |
Command line argument handler.
Definition at line 91 of file Game.java.
◆ getRound()
int host.labyrinth.Game.getRound |
( |
| ) |
|
|
package |
◆ main()
static void host.labyrinth.Game.main |
( |
String [] |
args | ) |
|
|
static |
◆ nextRound()
int host.labyrinth.Game.nextRound |
( |
| ) |
|
|
package |
Utility to increase and get the increased round of the game.
Definition at line 57 of file Game.java.
◆ round()
int host.labyrinth.Game.round |
( |
| ) |
|
|
package |
Utility to get current round of the game.
Definition at line 55 of file Game.java.
◆ setRound()
void host.labyrinth.Game.setRound |
( |
int |
round | ) |
|
|
package |
◆ waitUser()
void host.labyrinth.Game.waitUser |
( |
| ) |
|
|
package |
Utility to hold the execution of the program waiting for user input.
This is true only if the user passed the interactive flag.
Definition at line 63 of file Game.java.
◆ round
int host.labyrinth.Game.round |
|
private |
Holds the round of the game.
Definition at line 84 of file Game.java.
◆ scan
Scanner host.labyrinth.Game.scan |
|
private |
Input handle used in interactive mode.
Definition at line 85 of file Game.java.
The documentation for this class was generated from the following file: