Skip to content

Commit

Permalink
Add method to wander provider to set XY range properly
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 22, 2020
1 parent 1cd8e19 commit 773058f
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -283,6 +283,14 @@ public void setPaused(boolean paused) {
this.paused = paused;
}

public void setXYRange(int xrange, int yrange) {
this.xrange = xrange;
this.yrange = yrange;
if (currentGoal != null) {
currentGoal.setXYRange(xrange, yrange);
}
}

private class RecalculateList extends ForwardingList<Location> {
@Override
public void add(int idx, Location loc) {
Expand Down

0 comments on commit 773058f

Please sign in to comment.