Merge branch 'master' into develop

This commit is contained in:
Michael Rausch
2017-05-11 13:29:51 +12:00
2 changed files with 15 additions and 8 deletions
@@ -17,6 +17,7 @@ import javafx.stage.Stage;
import seng302.models.*;
import seng302.models.mark.*;
import seng302.models.parsers.StreamParser;
import seng302.models.parsers.StreamReceiver;
import seng302.models.parsers.packets.BoatPositionPacket;
import seng302.models.parsers.XMLParser;
import seng302.models.parsers.XMLParser.RaceXMLObject.CompoundMark;
@@ -43,8 +44,8 @@ public class CanvasController {
private final int MARK_SIZE = 10;
private final int BUFFER_SIZE = 50;
private final int CANVAS_WIDTH = 1000;
private final int CANVAS_HEIGHT = 1000;
private final int CANVAS_WIDTH = 720;
private final int CANVAS_HEIGHT = 720;
private final int LHS_BUFFER = BUFFER_SIZE;
private final int RHS_BUFFER = BUFFER_SIZE + MARK_SIZE / 2;
private final int TOP_BUFFER = BUFFER_SIZE;
@@ -129,13 +130,11 @@ public class CanvasController {
// TODO: 1/05/17 cir27 - Make the RaceObjects update on the actual delay.
elapsedNanos = 1000 / 60;
updateRaceObjects();
if (StreamParser.isRaceFinished()) {
this.stop();
}
}
};
for (Mark m : raceViewController.getRace().getCourse()) {
//System.out.println(m.getName());
}
//timer.start();
}