public static enum Cavern.Direction extends java.lang.Enum<Cavern.Direction>
Modifier and Type | Method and Description |
---|---|
game.Cavern.Point |
getPoint()
Return the direction.
|
static Cavern.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Cavern.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cavern.Direction NORTH
public static final Cavern.Direction EAST
public static final Cavern.Direction SOUTH
public static final Cavern.Direction WEST
public static Cavern.Direction[] values()
for (Cavern.Direction c : Cavern.Direction.values()) System.out.println(c);
public static Cavern.Direction 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 game.Cavern.Point getPoint()