Enum Class ActionType

java.lang.Object
java.lang.Enum<ActionType>
dev.twilite.game.menu.ActionType
All Implemented Interfaces:
Serializable, Comparable<ActionType>, Constable

public enum ActionType extends Enum<ActionType>
Game minimenu action opcodes.
  • Enum Constant Details

    • OPLOCU

      public static final ActionType OPLOCU
    • OPLOCT

      public static final ActionType OPLOCT
    • OPLOC1

      public static final ActionType OPLOC1
    • OPLOC2

      public static final ActionType OPLOC2
    • OPLOC3

      public static final ActionType OPLOC3
    • OPLOC4

      public static final ActionType OPLOC4
    • OPLOC5

      public static final ActionType OPLOC5
    • OPLOC6

      public static final ActionType OPLOC6
    • OPNPCU

      public static final ActionType OPNPCU
    • OPNPCT

      public static final ActionType OPNPCT
    • OPNPC1

      public static final ActionType OPNPC1
    • OPNPC2

      public static final ActionType OPNPC2
    • OPNPC3

      public static final ActionType OPNPC3
    • OPNPC4

      public static final ActionType OPNPC4
    • OPNPC5

      public static final ActionType OPNPC5
    • OPNPC6

      public static final ActionType OPNPC6
    • OPPLAYERU

      public static final ActionType OPPLAYERU
    • OPPLAYERT

      public static final ActionType OPPLAYERT
    • OPPLAYER1

      public static final ActionType OPPLAYER1
    • OPPLAYER2

      public static final ActionType OPPLAYER2
    • OPPLAYER3

      public static final ActionType OPPLAYER3
    • OPPLAYER4

      public static final ActionType OPPLAYER4
    • OPPLAYER5

      public static final ActionType OPPLAYER5
    • OPPLAYER6

      public static final ActionType OPPLAYER6
    • OPPLAYER7

      public static final ActionType OPPLAYER7
    • OPPLAYER8

      public static final ActionType OPPLAYER8
    • OPOBJU

      public static final ActionType OPOBJU
    • OPOBJT

      public static final ActionType OPOBJT
    • OPOBJ1

      public static final ActionType OPOBJ1
    • OPOBJ2

      public static final ActionType OPOBJ2
    • OPOBJ3

      public static final ActionType OPOBJ3
    • OPOBJ4

      public static final ActionType OPOBJ4
    • OPOBJ5

      public static final ActionType OPOBJ5
    • OPOBJ6

      public static final ActionType OPOBJ6
    • RESUME_PAUSEBUTTON

      public static final ActionType RESUME_PAUSEBUTTON
    • IF_BUTTONU

      public static final ActionType IF_BUTTONU
    • IF_BUTTONT

      public static final ActionType IF_BUTTONT
    • IF_BUTTONX

      public static final ActionType IF_BUTTONX
    • IF_BUTTONX2

      public static final ActionType IF_BUTTONX2
    • SET_HEADING

      public static final ActionType SET_HEADING
    • OPWORLDENTITYU

      public static final ActionType OPWORLDENTITYU
    • OPWORLDENTITYT

      public static final ActionType OPWORLDENTITYT
    • OPWORLDENTITY1

      public static final ActionType OPWORLDENTITY1
    • OPWORLDENTITY2

      public static final ActionType OPWORLDENTITY2
    • OPWORLDENTITY3

      public static final ActionType OPWORLDENTITY3
    • OPWORLDENTITY4

      public static final ActionType OPWORLDENTITY4
    • OPWORLDENTITY5

      public static final ActionType OPWORLDENTITY5
    • OPWORLDENTITY6

      public static final ActionType OPWORLDENTITY6
  • Method Details

    • values

      public static ActionType[] 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 ActionType 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
    • byOpcode

      public static Optional<ActionType> byOpcode(int opcode)
      Resolves an action type from a raw opcode.

      Opcodes with the game's high-priority +2000 modifier are normalized first.

    • opcode

      public int opcode()
      Returns the raw opcode passed to doAction.