Modifier and Type | Method and Description |
---|---|
boolean |
isOpen()
Return true iff this Type of Tile is traversable.
|
static Tile.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tile.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tile.Type FLOOR
public static final Tile.Type ORB
public static final Tile.Type ENTRANCE
public static final Tile.Type WALL
public static Tile.Type[] values()
for (Tile.Type c : Tile.Type.values()) System.out.println(c);
public static Tile.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isOpen()