public enum Type extends Enum<Type>
Enum Constant and Description |
---|
CREATURE |
EMPTY
A square that is empty and can be entered (note that it may no
longer be empty by the time you actually get around to entering
it, though!.
|
HAZARD
A square that cannot be entered because it is blocked by an immovable
and indestructible hazard.
|
WALL
A square that cannot be entered because it is blocked by an
immovable and indestructible wall.
|
Modifier and Type | Field and Description |
---|---|
static Type |
THORN
Deprecated.
Old name for HAZARD
|
Modifier and Type | Method and Description |
---|---|
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type EMPTY
public static final Type WALL
public static final Type HAZARD
public static final Type CREATURE
public static final Type THORN
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 null