Package com.csse3200.game.services
Enum Class DialogService.DialogType
- All Implemented Interfaces:
Serializable
,Comparable<DialogService.DialogType>
,Constable
- Enclosing class:
DialogService
Enum for the different types of dialogs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionError dialog type, typically used for error messages with a single "OK" button.Info dialog type, typically used for informational messages with a single "OK" button.Skill dialog type, typically used for skill information with "Unlock" and "Close" buttons.Warning dialog type, typically used for warning msgs w/ "Confirm" and "Cancel" btns. -
Method Summary
Modifier and TypeMethodDescriptionstatic DialogService.DialogType
Returns the enum constant of this class with the specified name.static DialogService.DialogType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFO
Info dialog type, typically used for informational messages with a single "OK" button. -
WARNING
Warning dialog type, typically used for warning msgs w/ "Confirm" and "Cancel" btns. -
ERROR
Error dialog type, typically used for error messages with a single "OK" button. -
SKILL
Skill dialog type, typically used for skill information with "Unlock" and "Close" buttons.
-
-
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
-