public static class SquidIterators.Linear extends java.lang.Object implements SquidIterator
Modifier and Type | Field and Description |
---|---|
protected Direction |
direction |
protected int |
height
The grid's height
|
protected int |
width
The grid's width
|
protected int |
x
The current X-coordinate
|
protected int |
y
The Y-coordinate
|
Modifier | Constructor and Description |
---|---|
protected |
Linear() |
|
Linear(Direction direction,
int startx,
int y,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Coord |
next() |
void |
remove() |
protected int x
protected int y
protected final int width
protected final int height
protected Direction direction
protected Linear()
public Linear(Direction direction, int startx, int y, int width, int height)
Copyright © Eben Howard 2012–2022. All rights reserved.