|
|
|
@ -2,6 +2,8 @@ package seng302.Model;
|
|
|
|
|
|
|
|
|
|
|
|
import org.geotools.referencing.GeodeticCalculator;
|
|
|
|
import org.geotools.referencing.GeodeticCalculator;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Created by esa46 on 1/05/17.
|
|
|
|
* Created by esa46 on 1/05/17.
|
|
|
|
@ -18,6 +20,7 @@ public class Boat {
|
|
|
|
private long timeFinished = -1;
|
|
|
|
private long timeFinished = -1;
|
|
|
|
private boolean started = false;
|
|
|
|
private boolean started = false;
|
|
|
|
private double heading;
|
|
|
|
private double heading;
|
|
|
|
|
|
|
|
private ArrayList<Polar> polars;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Boat initialiser which keeps all of the information of the boat.
|
|
|
|
* Boat initialiser which keeps all of the information of the boat.
|
|
|
|
@ -153,4 +156,12 @@ public class Boat {
|
|
|
|
public void setHeading(double heading) {
|
|
|
|
public void setHeading(double heading) {
|
|
|
|
this.heading = heading;
|
|
|
|
this.heading = heading;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ArrayList<Polar> getPolars() {
|
|
|
|
|
|
|
|
return polars;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setPolars(ArrayList<Polar> polars) {
|
|
|
|
|
|
|
|
this.polars = polars;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|