From ad7a096778499e0ac5402dc852d345aeabea350d Mon Sep 17 00:00:00 2001 From: AleandroPagani Date: Fri, 24 Apr 2026 12:00:26 +0200 Subject: [PATCH] Add: Game model created and used in Game controller --- src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java b/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java index 8658dde..4ab23d5 100644 --- a/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java +++ b/src/main/java/it/polimi/ingsw/gc14/ServerLauncher.java @@ -2,6 +2,7 @@ package it.polimi.ingsw.gc14; import it.polimi.ingsw.gc14.Controller.GameController; +import it.polimi.ingsw.gc14.Model.Game; import it.polimi.ingsw.gc14.Network.NetworkEvent; import it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer; import it.polimi.ingsw.gc14.Network.TCP.Server.TCPServer; @@ -49,7 +50,8 @@ public class ServerLauncher { // Questa classe esegue gli eventi nella coda e chiama il notify all e notify error sia RMI che TCP BlockingQueue actionQueue = new LinkedBlockingQueue<>(); - GameController gameController = new GameController(); + Game model = new Game(); + GameController gameController = new GameController(model); RMIServer serverRMI = new RMIServer(gameController, 1099, actionQueue); TCPServer serverTCP = new TCPServer(gameController, 8080, actionQueue);