Merge remote-tracking branch 'origin/splitIntoTwoModules' into splitIntoTwoModules
This commit is contained in:
@@ -84,6 +84,7 @@ public class ResizableRaceCanvas extends Canvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void displayBoat(Boat boat, double angle, Color colour) {
|
public void displayBoat(Boat boat, double angle, Color colour) {
|
||||||
|
if (boat.getCurrentPosition() != null) {
|
||||||
GraphCoordinate pos = this.map.convertGPS(boat.getCurrentPosition());
|
GraphCoordinate pos = this.map.convertGPS(boat.getCurrentPosition());
|
||||||
Paint paint = colour;
|
Paint paint = colour;
|
||||||
|
|
||||||
@@ -96,6 +97,7 @@ public class ResizableRaceCanvas extends Canvas {
|
|||||||
gc.fillPolygon(x, y, 3);
|
gc.fillPolygon(x, y, 3);
|
||||||
gc.restore();
|
gc.restore();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays a line on the map with rectangles on the starting and ending point of the line.
|
* Displays a line on the map with rectangles on the starting and ending point of the line.
|
||||||
|
|||||||
Reference in New Issue
Block a user