mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
re-implemented existing functionality in UI
- Correct player count is shown in server list - Servers now advertise their capacity and number of players connected - Players can click join on the servers in the server list - Direct connect works - Can set max players / server name in host dialog - Server starts correctly when host clicked - Implemented boat customization - Implemented 'begin race button', and disabled it for players that aren't hosts - Added countdown timer in lobby - Fixed bug where app wouldn't close Tags: #story[1245]
This commit is contained in:
@@ -22,11 +22,11 @@ public class XMLGenerator {
|
||||
private static final String BOATS_TEMPLATE_NAME = "boats.ftlh";
|
||||
private static final String RACE_TEMPLATE_NAME = "race.ftlh";
|
||||
private Configuration configuration;
|
||||
private Regatta regatta = null;
|
||||
private static Regatta regatta = null;
|
||||
private Race race;
|
||||
|
||||
public static Regatta DEFAULT_REGATTA = new Regatta("Party Parrot Test Server " + new Random().nextInt(100),
|
||||
"Bermuda Test Course",
|
||||
"Bermuda",
|
||||
57.6679590,
|
||||
11.8503233);
|
||||
|
||||
@@ -167,4 +167,12 @@ public class XMLGenerator {
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void setDefaultRaceName(String raceName){
|
||||
DEFAULT_REGATTA.setRegattaName(raceName);
|
||||
}
|
||||
|
||||
public static void setDefaultMapName(String mapName){
|
||||
DEFAULT_REGATTA.setCourseName(mapName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user