WIP: Connected game client to main server thread to pass compound mark variable.

Boats are initialised in main server thread behind start line before game starts.

#story[1117]
This commit is contained in:
Zhi You Tan
2017-08-03 18:39:15 +12:00
parent 1ab849fd0d
commit 8af80e6c3a
7 changed files with 69 additions and 506 deletions
@@ -89,6 +89,8 @@ public class GameClient {
loadStartScreen();
}
});
server.setGameClient(this);
}
private void loadStartScreen() {
@@ -174,7 +176,7 @@ public class GameClient {
break;
case BOAT_XML:
System.out.println("GOT SUM BOATS YAY :)");
// System.out.println("GOT SUM BOATS YAY :)");
allBoatsMap = XMLParser.parseBoats(
StreamParser.extractXmlMessage(packet)
);
@@ -322,4 +324,8 @@ public class GameClient {
break;
}
}
public RaceXMLData getCourseData() {
return courseData;
}
}