Enum BoulderDashCaveMap
- java.lang.Object
-
- java.lang.Enum<BoulderDashCaveMap>
-
- org.refcodes.data.ext.boulderdash.BoulderDashCaveMap
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BoulderDashCaveMap>
,org.refcodes.data.DataLocator
public enum BoulderDashCaveMap extends java.lang.Enum<BoulderDashCaveMap> implements org.refcodes.data.DataLocator
TheBoulderDashCaveMap
defines the cave maps which can be retrieved by the accordingBoulderDashCaveMapFactory
.- 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 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, org.refcodes.data.DataLocator.DataLocatorPropertyBuilder
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoulderDashCaveMap
fromName(java.lang.String aMapName)
Retrieves the enumeration element representing the given map name (ignoring the case) or null if none was found.java.io.InputStream
getDataInputStream()
java.net.URL
getDataUrl()
static BoulderDashCaveMap
valueOf(java.lang.String name)
Returns 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 Detail
-
CAVE_01_INTRO
public static final BoulderDashCaveMap CAVE_01_INTRO
-
CAVE_02_ROOMS
public static final BoulderDashCaveMap CAVE_02_ROOMS
-
CAVE_03_MAZE
public static final BoulderDashCaveMap CAVE_03_MAZE
-
CAVE_04_BUTTERFLIES
public static final BoulderDashCaveMap CAVE_04_BUTTERFLIES
-
CAVE_05_GUARDS
public static final BoulderDashCaveMap CAVE_05_GUARDS
-
CAVE_06_FIREFLY_DENS
public static final BoulderDashCaveMap CAVE_06_FIREFLY_DENS
-
CAVE_07_AMOEBA
public static final BoulderDashCaveMap CAVE_07_AMOEBA
-
CAVE_08_ENCHANTED_WALL
public static final BoulderDashCaveMap CAVE_08_ENCHANTED_WALL
-
CAVE_09_GREED
public static final BoulderDashCaveMap CAVE_09_GREED
-
CAVE_10_TRACKS
public static final BoulderDashCaveMap CAVE_10_TRACKS
-
CAVE_11_CROWD
public static final BoulderDashCaveMap CAVE_11_CROWD
-
CAVE_12_WALLS
public static final BoulderDashCaveMap CAVE_12_WALLS
-
CAVE_13_APOCALYPSE
public static final BoulderDashCaveMap CAVE_13_APOCALYPSE
-
CAVE_14_ZIGZAG
public static final BoulderDashCaveMap CAVE_14_ZIGZAG
-
CAVE_15_FUNNEL
public static final BoulderDashCaveMap CAVE_15_FUNNEL
-
CAVE_16_ENCHANTED_BOXES
public static final BoulderDashCaveMap CAVE_16_ENCHANTED_BOXES
-
CAVE_17_INTERMISSION_1
public static final BoulderDashCaveMap CAVE_17_INTERMISSION_1
-
CAVE_18_INTERMISSION_2
public static final BoulderDashCaveMap CAVE_18_INTERMISSION_2
-
CAVE_19_INTERMISSION_3
public static final BoulderDashCaveMap CAVE_19_INTERMISSION_3
-
CAVE_20_INTERMISSION_4
public static final BoulderDashCaveMap CAVE_20_INTERMISSION_4
-
CAVE_99_TESTRUN
public static final BoulderDashCaveMap CAVE_99_TESTRUN
-
-
Method Detail
-
values
public static BoulderDashCaveMap[] 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 (BoulderDashCaveMap c : BoulderDashCaveMap.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BoulderDashCaveMap 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
-
getDataUrl
public java.net.URL getDataUrl()
- Specified by:
getDataUrl
in interfaceorg.refcodes.data.DataLocator
-
getDataInputStream
public java.io.InputStream getDataInputStream()
- Specified by:
getDataInputStream
in interfaceorg.refcodes.data.DataLocator
-
fromName
public static BoulderDashCaveMap fromName(java.lang.String aMapName)
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.
-
-