|
|
|
@ -67,7 +67,7 @@ public class HostGameController extends Controller {
|
|
|
|
* @param address address of the server
|
|
|
|
* @param address address of the server
|
|
|
|
* @param port port that the server is run off
|
|
|
|
* @param port port that the server is run off
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private void connectSocket(String address, int port) throws IOException {
|
|
|
|
public void connectSocket(String address, int port) throws IOException {
|
|
|
|
Socket socket = new Socket(address, port);
|
|
|
|
Socket socket = new Socket(address, port);
|
|
|
|
RaceStartController rsc = (RaceStartController)loadScene("raceStart.fxml");
|
|
|
|
RaceStartController rsc = (RaceStartController)loadScene("raceStart.fxml");
|
|
|
|
rsc.enterLobby(socket, true);
|
|
|
|
rsc.enterLobby(socket, true);
|
|
|
|
@ -110,4 +110,8 @@ public class HostGameController extends Controller {
|
|
|
|
mapImage.setImage(listOfMaps.get(currentMapIndex));
|
|
|
|
mapImage.setImage(listOfMaps.get(currentMapIndex));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setCurrentMapIndex(Integer index){
|
|
|
|
|
|
|
|
this.currentMapIndex = index;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|