Loading course mark order from RaceXML

- Mark order is read from the generated RaceXML and stored
- Added .getNextMark() to get the next mark in the race
- Added .equals() and .hashCode() for Marks

Tags: #story[1124] (Task 1)
This commit is contained in:
Michael Rausch
2017-08-02 22:03:10 +12:00
parent b01d39f19f
commit 7885b3fae2
6 changed files with 254 additions and 9 deletions
@@ -1,13 +1,14 @@
package seng302.gameServer;
import seng302.client.ClientPacketParser;
import seng302.models.Player;
import seng302.models.Yacht;
import seng302.server.messages.BoatActionType;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import seng302.client.ClientPacketParser;
import seng302.models.Player;
import seng302.models.Yacht;
import seng302.server.messages.BoatActionType;
/**
* A Static class to hold information about the current state of the game (model)
@@ -43,7 +44,6 @@ public class GameState implements Runnable {
yachts = new HashMap<>();
new Thread(this).start();
}
public static String getHostIpAddress() {