Fix: output
This commit is contained in:
@@ -28,21 +28,20 @@ public class ClientLauncherTUI {
|
||||
if (networkType == 0) {
|
||||
RMIClient client = new RMIClient("localhost", 1099);
|
||||
if (client.connect(username, proposedNumPlayers, controller)) {
|
||||
System.out.println("CLIENT CONNESSO DAJE");
|
||||
System.out.println("Succesfully connected to RMI server\n\n");
|
||||
} else {
|
||||
System.out.println("NON CONNESSO D:");
|
||||
System.out.println("RMI connection refused\n\n");
|
||||
}
|
||||
|
||||
while(true) {
|
||||
System.out.flush();
|
||||
if (controller.localModel!=null) {
|
||||
System.out.println("MODEL SETTATO");
|
||||
break;
|
||||
}
|
||||
Thread.sleep(500);
|
||||
}
|
||||
|
||||
|
||||
|
||||
System.out.println("Model set\n\n");
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ public class ServerLauncher {
|
||||
*/
|
||||
public void run() throws InterruptedException, RemoteException {
|
||||
// Game creation
|
||||
System.out.println("NOTIFICO MODEL");
|
||||
System.out.println("\n\nNotifying model");
|
||||
serverRMI.notifyAll(gameController.getModel());
|
||||
serverTCP.notifyAll(gameController.getModel());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user