Class GridIterator
java.lang.Object
com.github.yellowstonegames.grid.GridIterator
- Direct Known Subclasses:
GridIterator.CenteredSquare, GridIterator.SquareSpiral, GridIterator.VerticalUp
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn iterator that returns cells in a square around a location.static classIterates in a square spiral going outward from a starting position.static classAn iterator to iterate from a starting position (exclusive) and going up. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, hasNext, next, remove
-
Field Details
-
width
public int width -
height
public int height
-
-
Constructor Details
-
GridIterator
public GridIterator()
-