|
|
|
@ -41,9 +41,6 @@ public class InGameLobbyController extends Controller {
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private ImageView imageView;
|
|
|
|
private ImageView imageView;
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
|
|
|
|
AnchorPane gameLobbyWrapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
GridPane playerContainer;
|
|
|
|
GridPane playerContainer;
|
|
|
|
|
|
|
|
|
|
|
|
@ -88,7 +85,7 @@ public class InGameLobbyController extends Controller {
|
|
|
|
private PopulatePlayers lobbyUpdateListener;
|
|
|
|
private PopulatePlayers lobbyUpdateListener;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void initialize(URL location, ResourceBundle resources) {
|
|
|
|
public void initialize() {
|
|
|
|
allPlayerLabels = new ArrayList(Arrays.asList(playerLabel, playerLabel2,
|
|
|
|
allPlayerLabels = new ArrayList(Arrays.asList(playerLabel, playerLabel2,
|
|
|
|
playerLabel3,
|
|
|
|
playerLabel3,
|
|
|
|
playerLabel4,
|
|
|
|
playerLabel4,
|
|
|
|
@ -186,10 +183,6 @@ public class InGameLobbyController extends Controller {
|
|
|
|
countdownTimer();
|
|
|
|
countdownTimer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public AnchorPane gameLobbyWrapper(){
|
|
|
|
|
|
|
|
return gameLobbyWrapper;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Initialises the race clock/timer labels for the start time, current time, and remaining time.
|
|
|
|
* Initialises the race clock/timer labels for the start time, current time, and remaining time.
|
|
|
|
* @param visualiserRace The race to get data from.
|
|
|
|
* @param visualiserRace The race to get data from.
|
|
|
|
@ -258,11 +251,8 @@ public class InGameLobbyController extends Controller {
|
|
|
|
this.isHost = isHost;
|
|
|
|
this.isHost = isHost;
|
|
|
|
this.controllerClient = visualiserRaceEvent.getControllerClient();
|
|
|
|
this.controllerClient = visualiserRaceEvent.getControllerClient();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.visualiserRaceEvent.getVisualiserRaceState().getBoats().addListener(this.lobbyUpdateListener);
|
|
|
|
this.visualiserRaceEvent.getVisualiserRaceState().getBoats().addListener(this.lobbyUpdateListener);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gameLobbyWrapper.setVisible(true);
|
|
|
|
|
|
|
|
startRace();
|
|
|
|
startRace();
|
|
|
|
} catch (IOException e) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
//TODO should probably let this propagate, so that we only enter this scene if everything works
|
|
|
|
//TODO should probably let this propagate, so that we only enter this scene if everything works
|
|
|
|
|