|
|
|
@ -108,6 +108,8 @@ public class Event {
|
|
|
|
boatsXMLFile = "mock/mockXML/boatsSinglePlayer.xml";
|
|
|
|
boatsXMLFile = "mock/mockXML/boatsSinglePlayer.xml";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double windAngle = 300;
|
|
|
|
|
|
|
|
|
|
|
|
//Read XML files.
|
|
|
|
//Read XML files.
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
//this.raceXML = RaceXMLCreator.alterRaceToWind(raceXMLFile, 90);
|
|
|
|
//this.raceXML = RaceXMLCreator.alterRaceToWind(raceXMLFile, 90);
|
|
|
|
@ -116,7 +118,7 @@ public class Event {
|
|
|
|
//this.raceXML = Event.setRaceXMLAtCurrentTimeToNow(XMLReader.readXMLFileToString(raceXMLFile, StandardCharsets.UTF_8), 1000, 5000);
|
|
|
|
//this.raceXML = Event.setRaceXMLAtCurrentTimeToNow(XMLReader.readXMLFileToString(raceXMLFile, StandardCharsets.UTF_8), 1000, 5000);
|
|
|
|
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, -1, true);
|
|
|
|
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, -1, true);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, 300, false);
|
|
|
|
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, windAngle, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.boatXML = XMLReader.readXMLFileToString(boatsXMLFile, StandardCharsets.UTF_8);
|
|
|
|
this.boatXML = XMLReader.readXMLFileToString(boatsXMLFile, StandardCharsets.UTF_8);
|
|
|
|
@ -149,7 +151,7 @@ public class Event {
|
|
|
|
this.latestMessages = new LatestMessages();
|
|
|
|
this.latestMessages = new LatestMessages();
|
|
|
|
|
|
|
|
|
|
|
|
WindGenerator windGenerator = new ShiftingWindGenerator(
|
|
|
|
WindGenerator windGenerator = new ShiftingWindGenerator(
|
|
|
|
Bearing.fromDegrees(225),
|
|
|
|
Bearing.fromDegrees(windAngle),
|
|
|
|
12
|
|
|
|
12
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|