Enum BoulderDashStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BoulderDashStatus>

    public enum BoulderDashStatus
    extends java.lang.Enum<BoulderDashStatus>
    The Enum BoulderDashStatus.
    • Method Detail

      • values

        public static BoulderDashStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BoulderDashStatus c : BoulderDashStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BoulderDashStatus valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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"