Serializable
, Comparable<BoulderDashCaveMap>
, org.refcodes.data.DataLocator
public enum BoulderDashCaveMap extends Enum<BoulderDashCaveMap> implements org.refcodes.data.DataLocator
BoulderDashCaveMap
defines the cave maps which can be retrieved
by the according BoulderDashCaveMapFactory
.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
Modifier and Type | Method | Description |
---|---|---|
static BoulderDashCaveMap |
fromName(String aMapName) |
Retrieves the enumeration element representing the given map name
(ignoring the case) or null if none was found.
|
InputStream |
getDataInputStream() |
|
URL |
getDataUrl() |
|
static BoulderDashCaveMap |
valueOf(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.
|
public static final BoulderDashCaveMap CAVE_01_INTRO
public static final BoulderDashCaveMap CAVE_02_ROOMS
public static final BoulderDashCaveMap CAVE_03_MAZE
public static final BoulderDashCaveMap CAVE_04_BUTTERFLIES
public static final BoulderDashCaveMap CAVE_05_GUARDS
public static final BoulderDashCaveMap CAVE_06_FIREFLY_DENS
public static final BoulderDashCaveMap CAVE_07_AMOEBA
public static final BoulderDashCaveMap CAVE_08_ENCHANTED_WALL
public static final BoulderDashCaveMap CAVE_09_GREED
public static final BoulderDashCaveMap CAVE_10_TRACKS
public static final BoulderDashCaveMap CAVE_11_CROWD
public static final BoulderDashCaveMap CAVE_12_WALLS
public static final BoulderDashCaveMap CAVE_13_APOCALYPSE
public static final BoulderDashCaveMap CAVE_14_ZIGZAG
public static final BoulderDashCaveMap CAVE_15_FUNNEL
public static final BoulderDashCaveMap CAVE_16_ENCHANTED_BOXES
public static final BoulderDashCaveMap CAVE_17_INTERMISSION_1
public static final BoulderDashCaveMap CAVE_18_INTERMISSION_2
public static final BoulderDashCaveMap CAVE_19_INTERMISSION_3
public static final BoulderDashCaveMap CAVE_20_INTERMISSION_4
public static final BoulderDashCaveMap CAVE_99_TESTRUN
public static BoulderDashCaveMap[] values()
for (BoulderDashCaveMap c : BoulderDashCaveMap.values()) System.out.println(c);
public static BoulderDashCaveMap valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic URL getDataUrl()
getDataUrl
in interface org.refcodes.data.DataLocator
public InputStream getDataInputStream()
getDataInputStream
in interface org.refcodes.data.DataLocator
public static BoulderDashCaveMap fromName(String aMapName)
aMapName
- The map name for which to get the enumeration element.Copyright © 2018. All rights reserved.