Enum BoulderDashStatus
- All Implemented Interfaces:
Serializable,Comparable<BoulderDashStatus>,java.lang.constant.Constable
The Enum BoulderDashStatus.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic BoulderDashStatusfromAsciiChar(char aAsciiChar) Resolves the ASCII char (as often used by Boulder-Dash cave maps) to the according status,.charGets the ascii char.static BoulderDashStatusReturns 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 Details
-
BOULDER
-
DIAMOND
-
DIAMOND_BIRTH
-
BRICK_WALL
-
MAGIC_WALL
-
MAGIC_WALL_EXPIRED
-
STEEL_WALL
-
STEEL_WALL_OPEN
-
STEEL_WALL_BLINKING
-
EXPANDING_WALL
-
ROCKFORD
-
ROCKFORD_BLINKING
-
ROCKFORD_TRAPPING_FOOT
-
ROCKFORD_BLINKING_TRAPPING_FOOT
-
ROCKFORD_LEFT
-
ROCKFORD_RIGHT
-
ROCKFORD_BIRTH
-
DIRT
-
FIREFLY
-
BUTTERFLY
-
AMOEBA
-
NONE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getAsciiChar
public char getAsciiChar()Gets the ascii char.- Returns:
- the ascii char
-
fromAsciiChar
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
BoulderDashStatusas 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"
-