Enum BoulderDashCaveMap
- All Implemented Interfaces:
Serializable,Comparable<BoulderDashCaveMap>,java.lang.constant.Constable,org.refcodes.data.DataLocator
public enum BoulderDashCaveMap
extends Enum<BoulderDashCaveMap>
implements org.refcodes.data.DataLocator
The
BoulderDashCaveMap defines the cave maps which can be retrieved
by the according BoulderDashCaveMapFactory.- See Also:
-
- "http://codeincomplete.com/posts/javascript-boulderdash/decoded_cave_data.pdf"
- "http://maps.speccy.cz/map.php?id=BoulderDash1&sort=4&part=2&ath="
- "http://maps.speccy.cz/"
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.refcodes.data.DataLocator
org.refcodes.data.DataLocator.DataLocatorBuilder<B extends org.refcodes.data.DataLocator.DataLocatorBuilder<B>>, org.refcodes.data.DataLocator.DataLocatorMutator, org.refcodes.data.DataLocator.DataLocatorProperty -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic BoulderDashCaveMapRetrieves the enumeration element representing the given map name (ignoring the case) or null if none was found.static BoulderDashCaveMapReturns the enum constant of this type with the specified name.static BoulderDashCaveMap[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CAVE_01_INTRO
-
CAVE_02_ROOMS
-
CAVE_03_MAZE
-
CAVE_04_BUTTERFLIES
-
CAVE_05_GUARDS
-
CAVE_06_FIREFLY_DENS
-
CAVE_07_AMOEBA
-
CAVE_08_ENCHANTED_WALL
-
CAVE_09_GREED
-
CAVE_10_TRACKS
-
CAVE_11_CROWD
-
CAVE_12_WALLS
-
CAVE_13_APOCALYPSE
-
CAVE_14_ZIGZAG
-
CAVE_15_FUNNEL
-
CAVE_16_ENCHANTED_BOXES
-
CAVE_17_INTERMISSION_1
-
CAVE_18_INTERMISSION_2
-
CAVE_19_INTERMISSION_3
-
CAVE_20_INTERMISSION_4
-
CAVE_99_TESTRUN
-
-
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
-
getDataUrl
- Specified by:
getDataUrlin interfaceorg.refcodes.data.DataLocator
-
getDataInputStream
- Specified by:
getDataInputStreamin interfaceorg.refcodes.data.DataLocator
-
fromName
Retrieves the enumeration element representing the given map name (ignoring the case) or null if none was found.- Parameters:
aMapName- The map name for which to get the enumeration element.- Returns:
- The enumeration element determined or null if none matching was found.
-