boats now have polars stored in the
-added getter and setter for a boats polars #story[900]
This commit is contained in:
@@ -2,6 +2,8 @@ package seng302.Model;
|
||||
|
||||
import org.geotools.referencing.GeodeticCalculator;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
/**
|
||||
* Created by esa46 on 1/05/17.
|
||||
@@ -18,6 +20,7 @@ public class Boat {
|
||||
private long timeFinished = -1;
|
||||
private boolean started = false;
|
||||
private double heading;
|
||||
private ArrayList<Polar> polars;
|
||||
|
||||
/**
|
||||
* Boat initialiser which keeps all of the information of the boat.
|
||||
@@ -153,4 +156,12 @@ public class Boat {
|
||||
public void setHeading(double heading) {
|
||||
this.heading = heading;
|
||||
}
|
||||
|
||||
public ArrayList<Polar> getPolars() {
|
||||
return polars;
|
||||
}
|
||||
|
||||
public void setPolars(ArrayList<Polar> polars) {
|
||||
this.polars = polars;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user