Add: Game model created and used in Game controller
This commit is contained in:
@@ -2,6 +2,7 @@ package it.polimi.ingsw.gc14;
|
|||||||
|
|
||||||
|
|
||||||
import it.polimi.ingsw.gc14.Controller.GameController;
|
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.NetworkEvent;
|
||||||
import it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer;
|
import it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer;
|
||||||
import it.polimi.ingsw.gc14.Network.TCP.Server.TCPServer;
|
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
|
// Questa classe esegue gli eventi nella coda e chiama il notify all e notify error sia RMI che TCP
|
||||||
|
|
||||||
BlockingQueue<NetworkEvent> actionQueue = new LinkedBlockingQueue<>();
|
BlockingQueue<NetworkEvent> actionQueue = new LinkedBlockingQueue<>();
|
||||||
GameController gameController = new GameController();
|
Game model = new Game();
|
||||||
|
GameController gameController = new GameController(model);
|
||||||
RMIServer serverRMI = new RMIServer(gameController, 1099, actionQueue);
|
RMIServer serverRMI = new RMIServer(gameController, 1099, actionQueue);
|
||||||
TCPServer serverTCP = new TCPServer(gameController, 8080, actionQueue);
|
TCPServer serverTCP = new TCPServer(gameController, 8080, actionQueue);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user