Package net.sf.gridarta.action.exportmap
Class PendingInfo
- java.lang.Object
-
- net.sf.gridarta.action.exportmap.PendingInfo
-
public class PendingInfo extends java.lang.ObjectPreliminary layout information for a map.
-
-
Constructor Summary
Constructors Constructor Description PendingInfo(@NotNull Direction direction, int x, int y)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetX(int width)Returns the x coordinate of the next map.intgetY(int height)Returns the y coordinate of the next map.
-
-
-
Constructor Detail
-
PendingInfo
public PendingInfo(@NotNull @NotNull Direction direction, int x, int y)Creates a new instance.- Parameters:
direction- the direction from which the map was discovered; may beNORTH,EAST,SOUTH,WEST, orUPx- 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.
-
-
Method Detail
-
getX
public int getX(int width)
Returns the x coordinate of the next map.- Parameters:
width- the width of the previous map- Returns:
- the x coordinate of the next map
-
getY
public int getY(int height)
Returns the y coordinate of the next map.- Parameters:
height- the height of the previous map- Returns:
- the y coordinate of the next map
-
-