Add: network interface selection GUI

This commit is contained in:
2026-05-06 15:56:40 +02:00
parent 5d31e6346d
commit 9b206629c0
4 changed files with 45 additions and 3 deletions
@@ -32,7 +32,7 @@ public class ClientLauncherGUI extends Application {
// Connessione in un thread separato — non bloccare il JavaFX thread!
new Thread(() -> {
if (networkType == 0) {
RMIClient client = new RMIClient(controller, ip, 1099, "localhost");
RMIClient client = new RMIClient(controller, ip, 1099, loginView.getInterfaccia());
if (client.connect(nome, numPlayer)) {
controller.setClient(client);
// Da qui in poi il server chiamerà onGameInit → render()