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(BlockVector3 from,
BlockVector3 to)
Return whether the given 'to' block should be visited, starting from the
'from' block.
|
addAxes, addDiagonal, addStatusMessages, cancel, getAffected, getDirections, resume, visit
public RecursiveVisitor(Mask mask, RegionFunction function)
mask
- the maskfunction
- the functionprotected boolean isVisitable(BlockVector3 from, BlockVector3 to)
BreadthFirstSearch
isVisitable
in class BreadthFirstSearch
from
- the origin blockto
- the block under question