WebWalkEvent toDestination = new WebWalkEvent(INodeRouteFinder.createAdvanced(), destination); //can do Position position || try area.getRandomPosition();
toDestination.setBreakCondition(new Condition() { //if true, break the walker.
@Override
public boolean evaluate() {
return condition; //area.contains(myPos) || pos.distance() <= threshold
}
});
execute(toDestination);