Class SquidIterators.VerticalUp

java.lang.Object
squidpony.squidgrid.iterator.SquidIterators.VerticalUp
All Implemented Interfaces:
Iterator<Coord>, SquidIterator
Enclosing class:
SquidIterators

public static class SquidIterators.VerticalUp
extends Object
implements SquidIterator
An iterator to iterate from a starting position (exclusive) and going up. This iterator cycles when reaching the map's bound, but it iterates at most once on a cell, i.e. it does at most one roll over a column of the map.
Author:
smelC
  • Field Details

  • Constructor Details

    • VerticalUp

      public VerticalUp​(int startx, int starty, int width, int height)
      An iterator to iterate vertically, starting AFTER (startx, starty). This iterates cycles when it reaches the map's bound, but it iterates at most once on a cell, i.e. it does at most one roll over a column of the map.
      Parameters:
      startx - The starting X-coordinate.
      starty - The starting vertical-coordinate.
      width - The map's width.
      height - The map's height.
    • VerticalUp

      public VerticalUp​(Coord start, int width, int height)
      An iterator to iterate vertically, starting AFTER start. This iterates cycles when it reaches the map's bound, but it iterates at most once on a cell, i.e. it does at most one roll over a column of the map.
      Parameters:
      start - The starting coordinate.
      width - The map's width.
      height - The map's height.
  • Method Details