Added per map max player count. Handles case when map cannot fit players behind start mark. Added initial implementation for spacing out yachts.

#implement  #story[1275]
This commit is contained in:
Calum
2017-09-27 02:04:24 +13:00
parent ab5ad58237
commit e9881bb24a
4 changed files with 109 additions and 47 deletions
@@ -69,6 +69,9 @@ public class MessageFactory {
}
public static void updateBoats(List<ServerYacht> yachts) {
for (ServerYacht serverYacht : yachts) {
System.out.println(serverYacht);
}
xmlGenerator.getRace().setBoats(yachts);
String xmlStr = xmlGenerator.getBoatsAsXml();
MessageFactory.boats = new XMLMessage(xmlStr, XMLMessageSubType.BOAT, xmlStr.length());