public void setTarget(MapLocation dest) { // RC.setIndicatorString(2, "Mover target set to: " + dest); if (!dest.equals(this.dest)) { this.dest = dest; navAlg.recompute(dest); } }
public boolean arrived() { if (dest == null || dest.equals(currentLocation)) { return true; } return false; }