package seng302.visualiser.controllers; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javafx.application.Platform; import javafx.collections.ListChangeListener; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.TextArea; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.text.Text; import seng302.gameServer.GameStages; import seng302.gameServer.GameState; import seng302.visualiser.GameView; /** * A class describing the actions of the lobby screen * Created by wmu16 on 10/07/17. */ public class LobbyController { public enum CloseStatus { LEAVE, READY } @FunctionalInterface public interface LobbyCloseListener { void notify(CloseStatus exitCause); } @FXML private Text lobbyIpText; @FXML private Button readyButton; @FXML private TextArea playerOneTxt; @FXML private TextArea playerTwoTxt; @FXML private TextArea playerThreeTxt; @FXML private TextArea playerFourTxt; @FXML private TextArea playerFiveTxt; @FXML private TextArea playerSixTxt; @FXML private TextArea playerSevenTxt; @FXML private TextArea playerEightTxt; @FXML private ImageView firstImageView; @FXML private ImageView secondImageView; @FXML private ImageView thirdImageView; @FXML private ImageView fourthImageView; @FXML private ImageView fifthImageView; @FXML private ImageView sixthImageView; @FXML private ImageView seventhImageView; @FXML private ImageView eighthImageView; private List imageViews = new ArrayList<>(); private List