mud.common.objects
Enum Creature.Direction
java.lang.Object
java.lang.Enum<Creature.Direction>
mud.common.objects.Creature.Direction
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Creature.Direction>
- Enclosing class:
- Creature
public static enum Creature.Direction
- extends java.lang.Enum<Creature.Direction>
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NORTH
public static final Creature.Direction NORTH
SOUTH
public static final Creature.Direction SOUTH
EAST
public static final Creature.Direction EAST
WEST
public static final Creature.Direction WEST
values
public static Creature.Direction[] 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 (Creature.Direction c : Creature.Direction.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Creature.Direction 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 name
java.lang.NullPointerException
- if the argument is null
asInt
public int asInt()
fromInt
public static Creature.Direction fromInt(int intval)