public class Direction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int[] |
DELTA_X
An array for determining the change in X position that would
correspond to a step in the direction indexed.
|
static int[] |
DELTA_Y
An array for determining the change in Y position that would
correspond to a step in the direction indexed.
|
static int |
EAST |
static int |
NORTH |
static int |
SOUTH |
static int |
WEST |
Constructor and Description |
---|
Direction() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
toString(int direction) |
public static final int NORTH
public static final int EAST
public static final int SOUTH
public static final int WEST
public static final int[] DELTA_X
public static final int[] DELTA_Y