2020-04-14 15:54:09 +02:00
|
|
|
package inf112.fiasko.roborally.elementproperties;
|
2020-04-14 12:26:19 +02:00
|
|
|
|
2020-04-17 12:52:28 +02:00
|
|
|
/**
|
|
|
|
* This enum represents the different states the game can be in
|
|
|
|
*/
|
2020-04-14 12:26:19 +02:00
|
|
|
public enum GameState {
|
2020-04-17 12:52:28 +02:00
|
|
|
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* At the absolute start of the game, before anything has happended
|
|
|
|
*/
|
2020-04-14 15:54:09 +02:00
|
|
|
BEGINNING_OF_GAME,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* Indicates that the users' input is being run. The board should be shown
|
|
|
|
*/
|
2020-04-14 12:26:19 +02:00
|
|
|
RUNNING_PROGRAMS,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* The game is in the process of setting up things which are needed before it's ready for user input
|
|
|
|
*/
|
2020-04-14 12:26:19 +02:00
|
|
|
INITIAL_SETUP,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* Indicates that the game is in the process of cleaning up after a turn
|
|
|
|
*/
|
2020-04-14 12:26:19 +02:00
|
|
|
TURN_CLEANUP,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* Indicates that the user is in the process of choosing cards
|
|
|
|
*/
|
2020-04-14 12:26:19 +02:00
|
|
|
CHOOSING_CARDS,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* Indicates that the user is in the process of choosing whether to power down
|
|
|
|
*/
|
2020-04-14 12:26:19 +02:00
|
|
|
CHOOSING_POWER_DOWN,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* Indicates that the user is in the process of choosing whether to stay in power down
|
|
|
|
*/
|
2020-04-14 14:51:29 +02:00
|
|
|
CHOOSING_STAY_IN_POWER_DOWN,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* Indicates that the game is won by a player
|
|
|
|
*/
|
2020-04-16 15:03:04 +02:00
|
|
|
GAME_IS_WON,
|
2020-04-20 14:19:20 +02:00
|
|
|
/**
|
|
|
|
* Indicates that the game is currently waiting for something
|
|
|
|
*/
|
2020-04-20 21:43:47 +02:00
|
|
|
LOADING,
|
|
|
|
/**
|
|
|
|
* Indicates that the game is no longer running
|
|
|
|
*/
|
|
|
|
EXITED
|
2020-04-16 15:03:04 +02:00
|
|
|
|
2020-04-14 12:26:19 +02:00
|
|
|
}
|