Merge branch 'merge_fix_story51'
# Conflicts: # racevisionGame/src/main/java/mock/app/Event.java
This commit is contained in:
@@ -107,12 +107,13 @@ public class Event {
|
|||||||
|
|
||||||
//Read XML files.
|
//Read XML files.
|
||||||
try {
|
try {
|
||||||
|
//this.raceXML = RaceXMLCreator.alterRaceToWind(raceXMLFile, 90);
|
||||||
//this.raceXML = XMLReader.readXMLFileToString(raceXMLFile, StandardCharsets.UTF_8);
|
|
||||||
this.raceXML = Event.setRaceXMLAtCurrentTimeToNow(XMLReader.readXMLFileToString(raceXMLFile, StandardCharsets.UTF_8));
|
this.raceXML = Event.setRaceXMLAtCurrentTimeToNow(XMLReader.readXMLFileToString(raceXMLFile, StandardCharsets.UTF_8));
|
||||||
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, 300, false);
|
|
||||||
if(mapIndex==4){
|
if(mapIndex==4){
|
||||||
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);
|
||||||
|
} else {
|
||||||
|
this.raceXML = RaceXMLCreator.alterRaceToWind(this.raceXML, XMLFileType.Contents, 300, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.boatXML = XMLReader.readXMLFileToString(boatsXMLFile, StandardCharsets.UTF_8);
|
this.boatXML = XMLReader.readXMLFileToString(boatsXMLFile, StandardCharsets.UTF_8);
|
||||||
|
|||||||
@@ -92,7 +92,9 @@ public class RaceXMLCreator {
|
|||||||
|
|
||||||
double degreesToRotate = degrees - raceOriginalBearing;
|
double degreesToRotate = degrees - raceOriginalBearing;
|
||||||
|
|
||||||
|
if (degrees >= 0) {
|
||||||
alterRaceRotation(race, degreesToRotate);
|
alterRaceRotation(race, degreesToRotate);
|
||||||
|
}
|
||||||
|
|
||||||
return XMLUtilities.classToXML(race);
|
return XMLUtilities.classToXML(race);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user