Enum Class DialogService.DialogType

java.lang.Object
java.lang.Enum<DialogService.DialogType>
com.csse3200.game.services.DialogService.DialogType
All Implemented Interfaces:
Serializable, Comparable<DialogService.DialogType>, Constable
Enclosing class:
DialogService

public static enum DialogService.DialogType extends Enum<DialogService.DialogType>
Enum for the different types of dialogs.
  • Enum Constant Details

    • INFO

      public static final DialogService.DialogType INFO
      Info dialog type, typically used for informational messages with a single "OK" button.
    • WARNING

      public static final DialogService.DialogType WARNING
      Warning dialog type, typically used for warning msgs w/ "Confirm" and "Cancel" btns.
    • ERROR

      public static final DialogService.DialogType ERROR
      Error dialog type, typically used for error messages with a single "OK" button.
    • SKILL

      public static final DialogService.DialogType SKILL
      Skill dialog type, typically used for skill information with "Unlock" and "Close" buttons.
  • Method Details

    • values

      public static DialogService.DialogType[] 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

      public static DialogService.DialogType valueOf(String name)
      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 name
      NullPointerException - if the argument is null