public boolean isLocationClosed Location loc return this closedWaypoin

1
2
3
4
5
6
7
8
9
public boolean isLocationClosed(Location loc) {
return this.closedWaypoints.contains(loc);
}
public void closeWaypoint(Location loc) {
Waypoint waypoint = this.openedWaypoints.get(loc);
this.openedWaypoints.remove(loc);
this.closedWaypoints.add(loc, waypoint);
}