Enum BoulderDashStatus
- java.lang.Object
-
- java.lang.Enum<BoulderDashStatus>
-
- org.refcodes.data.ext.boulderdash.BoulderDashStatus
-
public enum BoulderDashStatus extends java.lang.Enum<BoulderDashStatus>
The Enum BoulderDashStatus.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoulderDashStatus
fromAsciiChar(char aAsciiChar)
Resolves the ASCII char (as often used by Boulder-Dash cave maps) to the according status,.char
getAsciiChar()
Gets the ascii char.static BoulderDashStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BoulderDashStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOULDER
public static final BoulderDashStatus BOULDER
-
DIAMOND
public static final BoulderDashStatus DIAMOND
-
DIAMOND_BIRTH
public static final BoulderDashStatus DIAMOND_BIRTH
-
BRICK_WALL
public static final BoulderDashStatus BRICK_WALL
-
MAGIC_WALL
public static final BoulderDashStatus MAGIC_WALL
-
MAGIC_WALL_EXPIRED
public static final BoulderDashStatus MAGIC_WALL_EXPIRED
-
STEEL_WALL
public static final BoulderDashStatus STEEL_WALL
-
STEEL_WALL_OPEN
public static final BoulderDashStatus STEEL_WALL_OPEN
-
STEEL_WALL_BLINKING
public static final BoulderDashStatus STEEL_WALL_BLINKING
-
EXPANDING_WALL
public static final BoulderDashStatus EXPANDING_WALL
-
ROCKFORD
public static final BoulderDashStatus ROCKFORD
-
ROCKFORD_BLINKING
public static final BoulderDashStatus ROCKFORD_BLINKING
-
ROCKFORD_TRAPPING_FOOT
public static final BoulderDashStatus ROCKFORD_TRAPPING_FOOT
-
ROCKFORD_BLINKING_TRAPPING_FOOT
public static final BoulderDashStatus ROCKFORD_BLINKING_TRAPPING_FOOT
-
ROCKFORD_LEFT
public static final BoulderDashStatus ROCKFORD_LEFT
-
ROCKFORD_RIGHT
public static final BoulderDashStatus ROCKFORD_RIGHT
-
ROCKFORD_BIRTH
public static final BoulderDashStatus ROCKFORD_BIRTH
-
DIRT
public static final BoulderDashStatus DIRT
-
FIREFLY
public static final BoulderDashStatus FIREFLY
-
BUTTERFLY
public static final BoulderDashStatus BUTTERFLY
-
AMOEBA
public static final BoulderDashStatus AMOEBA
-
NONE
public static final BoulderDashStatus NONE
-
-
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 namejava.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"
-
-