public enum MovementDirection extends Enum<MovementDirection>
| Enum Constant and Description |
|---|
BACKWARD |
DOWN |
FORWARD |
LEFT |
RIGHT |
UP |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand() |
static MovementDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MovementDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MovementDirection UP
public static final MovementDirection DOWN
public static final MovementDirection FORWARD
public static final MovementDirection BACKWARD
public static final MovementDirection LEFT
public static final MovementDirection RIGHT
public static MovementDirection[] values()
for (MovementDirection c : MovementDirection.values()) System.out.println(c);
public static MovementDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getCommand()
Copyright © 2020. All rights reserved.