public class RecursiveVisitor extends BreadthFirstSearch
BreadthFirstSearch that uses a mask to
determine where a block should be visited.| Constructor and Description |
|---|
RecursiveVisitor(Mask mask,
RegionFunction function)
Create a new recursive visitor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isVisitable(Vector from,
Vector to)
Return whether the given 'to' block should be visited, starting from the
'from' block.
|
addAxes, addDiagonal, cancel, getAffected, getDirections, resume, visitpublic RecursiveVisitor(Mask mask, RegionFunction function)
mask - the maskfunction - the functionprotected boolean isVisitable(Vector from, Vector to)
BreadthFirstSearchisVisitable in class BreadthFirstSearchfrom - the origin blockto - the block under questionCopyright © 2010-2014. All Rights Reserved.