com.threerings.media.util
Class AStarPathUtil.Stepper
java.lang.Object
com.threerings.media.util.AStarPathUtil.Stepper
- Enclosing class:
- AStarPathUtil
public static class AStarPathUtil.Stepper
- extends Object
Considers all the possible steps the piece in question can take.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_considerDiagonals
protected boolean _considerDiagonals
_info
protected AStarPathUtil.Info _info
_node
protected AStarPathUtil.Node _node
AStarPathUtil.Stepper
public AStarPathUtil.Stepper()
AStarPathUtil.Stepper
public AStarPathUtil.Stepper(boolean considerDiagonals)
init
public void init(AStarPathUtil.Info info,
AStarPathUtil.Node n)
considerSteps
public void considerSteps(int x,
int y)
- Should call
considerStep(int, int, int) in turn on all possible steps from the specified
coordinates. No checking must be done as to whether the step is legal, that will be
handled later. Just enumerate all possible steps.
considerStep
protected void considerStep(int x,
int y,
int cost)