Package tech.underoaks.coldcase.stages
Enum Class Stages
- All Implemented Interfaces:
Serializable,Comparable<Stages>,Constable
Enum representing the different stages/screens in the game.
Each stage is responsible for creating the appropriate screen when requested.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe game stage where the actual gameplay occurs.This stage is responsible to request a new game instance on the serverThis stage is responsible to connect to a remotely initialized instanceThe main menu that is selected when first opening the gameSettings -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractStageAbstract method that returns the corresponding screen for the stage.static StagesReturns the enum constant of this class with the specified name.static Stages[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAIN_MENU
The main menu that is selected when first opening the game -
GAME
The game stage where the actual gameplay occurs. It takes a level parameter to load the appropriate game level. if none is provided it will load Level_01 -
JOIN
This stage is responsible to connect to a remotely initialized instance -
HOST
This stage is responsible to request a new game instance on the server -
SETTINGS
Settings
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getScreen
Abstract method that returns the corresponding screen for the stage. Each stage must implement this method to return the appropriate screen based on the parameters.- Parameters:
params- The parameters to configure the screen.- Returns:
- The screen corresponding to the stage.
-