Class PendingInfo


  • public class PendingInfo
    extends java.lang.Object
    Preliminary 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
      int getX​(int width)
      Returns the x coordinate of the next map.
      int getY​(int height)
      Returns the y coordinate of the next map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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.
    • 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