Lobby controller list view is able to react to changes in client state boats and update the list view appropriately.

#story[1055]
This commit is contained in:
Zhi You Tan
2017-07-24 11:15:10 +12:00
parent 9d754c8819
commit df2efa3329
8 changed files with 609 additions and 27 deletions
@@ -66,6 +66,7 @@ public class ClientPacketParser {
* @param packet the packet to be looked at and processed
*/
public static void parsePacket(StreamPacket packet) {
System.out.println(packet.getType());
try {
switch (packet.getType()) {
case HEARTBEAT:
@@ -283,9 +284,9 @@ public class ClientPacketParser {
if (messageType == 7) { //7 is the boat XML
boats = xmlObject.getBoatXML().getCompetingBoats();
ClientState.setBoats(xmlObject.getBoatXML().getCompetingBoats());
ClientState.setDirtyState(true);
}
if (messageType == 6) { //6 is race info xml
newRaceXmlReceived = true;
}
}