java.lang.Object
java.lang.Enum<BoulderDashStatus>
org.refcodes.data.ext.boulderdash.BoulderDashStatus
All Implemented Interfaces:
Serializable, Comparable<BoulderDashStatus>, java.lang.constant.Constable

public enum BoulderDashStatus extends Enum<BoulderDashStatus>
The Enum BoulderDashStatus.
  • Enum Constant Details

  • Method Details

    • values

      public static BoulderDashStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BoulderDashStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getAsciiChar

      public char getAsciiChar()
      Gets the ascii char.
      Returns:
      the ascii char
    • fromAsciiChar

      public static BoulderDashStatus fromAsciiChar(char aAsciiChar)
      Resolves the ASCII char (as often used by Boulder-Dash cave maps) to the according status,.
      Parameters:
      aAsciiChar - The char for which to resolve the status.
      Returns:
      The BoulderDashStatus as of the given ASCII char or null if there is none such car.
      See Also:
      • "http://codeincomplete.com/posts/javascript-boulderdash/decoded_cave_data.pdf"