Enum Class AdvanceMode

java.lang.Object
java.lang.Enum<AdvanceMode>
com.csse3200.game.cutscene.models.object.AdvanceMode
All Implemented Interfaces:
Serializable, Comparable<AdvanceMode>, Constable

public enum AdvanceMode extends Enum<AdvanceMode>
For JSON values "input"|"auto"|"auto_delay"|"signal".
  • Enum Constant Details

    • INPUT

      public static final AdvanceMode INPUT
      Moves to next beat on keyboard or mouse input
    • AUTO

      public static final AdvanceMode AUTO
      Moves to next beat after all awaits have finished
    • AUTO_DELAY

      public static final AdvanceMode AUTO_DELAY
      Moves to next beat after a set ms delay after all awaits have finished
    • SIGNAL

      public static final AdvanceMode SIGNAL
      Moves to next beat after an in game event is triggered
  • Method Details

    • values

      public static AdvanceMode[] 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 AdvanceMode 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