Both TCP and RMI works and receive correctly the model.
After receiving the model, it is printed in stdout
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user