Created canvas and race controllers to display boats on canvas and modified marks and parsers to support them.

#story[377] #pair[zyt10, ptg19]
This commit is contained in:
zyt10
2017-03-17 18:21:11 +13:00
parent 4bc49da10d
commit c08504293b
12 changed files with 148 additions and 99 deletions
@@ -8,6 +8,8 @@ public abstract class Mark {
private String name;
private MarkType markType;
private double latitude;
private double longitude;
/**
* Create a mark instance by passing its name and type
@@ -19,6 +21,13 @@ public abstract class Mark {
this.markType = markType;
}
public Mark(String name, MarkType markType, double latitude, double longitude) {
this.name = name;
this.markType = markType;
this.latitude = latitude;
this.longitude = longitude;
}
public String getName() {
return name;
}
@@ -34,4 +43,12 @@ public abstract class Mark {
public void setMarkType(MarkType markType) {
this.markType = markType;
}
public double getLatitude() {
return latitude;
}
public double getLongitude() {
return longitude;
}
}