public enum TurtleVerb extends java.lang.Enum<TurtleVerb>
Enum Constant and Description |
---|
Attack
The turtle called turtle.attack(), turtle.attackUp() or turtle.attackDown()
|
Dig
The turtle called turtle.dig(), turtle.digUp() or turtle.digDown()
|
Modifier and Type | Method and Description |
---|---|
static TurtleVerb |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TurtleVerb[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurtleVerb Dig
public static final TurtleVerb Attack
public static TurtleVerb[] values()
for (TurtleVerb c : TurtleVerb.values()) System.out.println(c);
public static TurtleVerb 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 null