public class PendingInfo
extends java.lang.Object
Constructor and Description |
---|
PendingInfo(@NotNull Direction direction,
int x,
int y)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getX(int width)
Returns the x coordinate of the next map.
|
int |
getY(int height)
Returns the y coordinate of the next map.
|
public PendingInfo(@NotNull @NotNull Direction direction, int x, int y)
direction
- the direction from which the map was discovered; may be
NORTH
, EAST
, SOUTH
, WEST
, or UP
x
- the x coordinate of the border between the previous and the next
map.y
- the y coordinate of the border between the previous and the next
map.public int getX(int width)
width
- the width of the previous mappublic int getY(int height)
height
- the height of the previous map