Both TCP and RMI works and receive correctly the model.

After receiving the model, it is printed in stdout
This commit is contained in:
2026-04-30 18:10:11 +02:00
parent 7e3623d3ae
commit d66af3a112
2 changed files with 8 additions and 23 deletions
@@ -93,10 +93,11 @@ public class TCPClient {
System.out.println(event);
} else {
event.apply(controller.localController);
//clientController.view.update(); TODO
controller.view.render();
}
} else if (read instanceof Game model) {
controller.setModel(model);
controller.view.render();
}
} catch (IOException e) {
e.printStackTrace();