Enum Class Scroll

java.lang.Object
java.lang.Enum<Scroll>
xyz.calcugames.levelz.Scroll
All Implemented Interfaces:
Serializable, Comparable<Scroll>, Constable

public enum Scroll extends Enum<Scroll>
Represents the scroll direction of a 2D Level.
  • Enum Constant Details

    • NONE

      public static final Scroll NONE
      No Scrolling
    • HORIZONTAL_LEFT

      public static final Scroll HORIZONTAL_LEFT
      Horizontal Scrolling moving left
    • HORIZONTAL_RIGHT

      public static final Scroll HORIZONTAL_RIGHT
      Horizontal Scrolling moving right
    • VERTICAL_UP

      public static final Scroll VERTICAL_UP
      Vertical Scrolling moving up
    • VERTICAL_DOWN

      public static final Scroll VERTICAL_DOWN
      Vertical Scrolling moving down
  • Method Details

    • values

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