Package edu.ntnu.idi.idatt.navigation
Enum Class ViewType
- All Implemented Interfaces:
Serializable
,Comparable<ViewType>
,Constable
ViewType.
Enumerates the different types of views or screens that can be displayed within the
application. This is used by the ViewNavigator
to switch between different parts
of the user interface, such as game menus, game boards, and board creators.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the view displayed when a game (Ludo or Ladder Game) has finished, showing rankings and options to restart or go to the main menu.The main game selection screen where users can choose a game type.The main view for playing a Ladder game.The view for creating or editing Ladder game boards.The menu screen for setting up a Ladder game.The main view for playing a Ludo game.The view for creating or editing Ludo game boards.The menu screen for setting up a Ludo game. -
Method Summary
-
Enum Constant Details
-
GAME_SELECTION
The main game selection screen where users can choose a game type. -
LADDER_GAME_MENU
The menu screen for setting up a Ladder game. -
LADDER_GAME
The main view for playing a Ladder game. -
LADDER_GAME_BOARD_CREATOR
The view for creating or editing Ladder game boards. -
LUDO_GAME_MENU
The menu screen for setting up a Ludo game. -
LUDO_GAME
The main view for playing a Ludo game. -
LUDO_GAME_BOARD_CREATOR
The view for creating or editing Ludo game boards. -
GAME_FINISHED
Represents the view displayed when a game (Ludo or Ladder Game) has finished, showing rankings and options to restart or go to the main menu.
-
-
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
-