Added method in mark group to draw lay lines, also added next mark to Yacht class.

#story[956]
This commit is contained in:
Michael Rausch
2017-05-23 18:54:42 +12:00
parent e1b8e19966
commit ca8ea03870
4 changed files with 67 additions and 1 deletions
+10
View File
@@ -5,6 +5,7 @@ import seng302.models.mark.Mark;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import seng302.models.stream.XMLParser.RaceXMLObject.Corner;
/**
* Yacht class for the racing boat.
@@ -34,6 +35,7 @@ public class Yacht {
// Mark rounding
private Long markRoundingTime;
private Mark lastMarkRounded;
private Mark nextMark;
/**
* Used in EventTest and RaceTest.
@@ -181,4 +183,12 @@ public class Yacht {
public String toString() {
return boatName;
}
public void setNextMark(Mark nextMark) {
this.nextMark = nextMark;
}
public Mark getNextMark(){
return nextMark;
}
}