public enum TurtleAnimation extends java.lang.Enum<TurtleAnimation>
Enum Constant and Description |
---|
MoveBack
Make the turtle move backwards.
|
MoveDown
Make the turtle move backwards.
|
MoveForward
Make the turtle move forward.
|
MoveUp
Make the turtle move backwards.
|
None
An animation which does nothing.
|
ShortWait
Wait until the animation has finished, performing no movement.
|
SwingLeftTool
Swing the tool on the left.
|
SwingRightTool
Swing the tool on the right.
|
TurnLeft
Turn the turtle to the left.
|
TurnRight
Turn the turtle to the left.
|
Wait
Wait until the animation has finished, performing no movement.
|
Modifier and Type | Method and Description |
---|---|
static TurtleAnimation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TurtleAnimation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurtleAnimation None
public static final TurtleAnimation MoveForward
public static final TurtleAnimation MoveBack
public static final TurtleAnimation MoveUp
public static final TurtleAnimation MoveDown
public static final TurtleAnimation TurnLeft
public static final TurtleAnimation TurnRight
public static final TurtleAnimation SwingLeftTool
public static final TurtleAnimation SwingRightTool
public static final TurtleAnimation Wait
public static final TurtleAnimation ShortWait
public static TurtleAnimation[] values()
for (TurtleAnimation c : TurtleAnimation.values()) System.out.println(c);
public static TurtleAnimation 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