![]() |
Gridarta Editor
|
Preliminary layout information for a map. More...
Public Member Functions | |
int | getX (final int width) |
Returns the x coordinate of the next map. More... | |
int | getY (final int height) |
Returns the y coordinate of the next map. More... | |
PendingInfo (@NotNull final Direction direction, final int x, final int y) | |
Creates a new instance. More... | |
Private Attributes | |
final Direction | direction |
The direction from which the map was discovered. More... | |
final int | x |
The x coordinate of the border between the previous and the next map. More... | |
final int | y |
The y coordinate of the border between the previous and the next map. More... | |
Preliminary layout information for a map.
Definition at line 28 of file PendingInfo.java.
net.sf.gridarta.action.exportmap.PendingInfo.PendingInfo | ( | @NotNull final Direction | direction, |
final int | x, | ||
final int | y | ||
) |
Creates a new instance.
direction | the direction from which the map was discovered; may be NORTH
EAST
SOUTH
WEST
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. |
Definition at line 57 of file PendingInfo.java.
References net.sf.gridarta.action.exportmap.PendingInfo.direction, net.sf.gridarta.action.exportmap.PendingInfo.x, and net.sf.gridarta.action.exportmap.PendingInfo.y.
int net.sf.gridarta.action.exportmap.PendingInfo.getX | ( | final int | width | ) |
Returns the x coordinate of the next map.
width | the width of the previous map |
Definition at line 85 of file PendingInfo.java.
References net.sf.gridarta.action.exportmap.PendingInfo.direction, and net.sf.gridarta.action.exportmap.PendingInfo.x.
int net.sf.gridarta.action.exportmap.PendingInfo.getY | ( | final int | height | ) |
Returns the y coordinate of the next map.
height | the height of the previous map |
Definition at line 111 of file PendingInfo.java.
References net.sf.gridarta.action.exportmap.PendingInfo.direction, and net.sf.gridarta.action.exportmap.PendingInfo.y.
|
private |
The direction from which the map was discovered.
May be one of
,
,
,
, or
. The value
is used for the initial map.
Definition at line 36 of file PendingInfo.java.
Referenced by net.sf.gridarta.action.exportmap.PendingInfo.getX(), net.sf.gridarta.action.exportmap.PendingInfo.getY(), and net.sf.gridarta.action.exportmap.PendingInfo.PendingInfo().
|
private |
The x coordinate of the border between the previous and the next map.
Definition at line 41 of file PendingInfo.java.
Referenced by net.sf.gridarta.action.exportmap.PendingInfo.getX(), and net.sf.gridarta.action.exportmap.PendingInfo.PendingInfo().
|
private |
The y coordinate of the border between the previous and the next map.
Definition at line 46 of file PendingInfo.java.
Referenced by net.sf.gridarta.action.exportmap.PendingInfo.getY(), and net.sf.gridarta.action.exportmap.PendingInfo.PendingInfo().