Feat: uses real lobby id and not hardcoded id #284
@@ -114,8 +114,11 @@ public class CasinoGameUI extends Application {
|
|||||||
Parent root = fxmlLoader.load();
|
Parent root = fxmlLoader.load();
|
||||||
CasinoGameController controller = fxmlLoader.getController();
|
CasinoGameController controller = fxmlLoader.getController();
|
||||||
|
|
||||||
int gameId = 1; // TODO echte gameId einsetzen
|
if (lobbyId <= 0) {
|
||||||
GameClient gameClient = new GameClient(clientService, gameId);
|
throw new IllegalStateException("CasinoGameUI: lobbyId must be set before start()");
|
||||||
|
}
|
||||||
|
|
||||||
|
GameClient gameClient = new GameClient(clientService, lobbyId);
|
||||||
GameService gameService = new GameService(gameClient);
|
GameService gameService = new GameService(gameClient);
|
||||||
controller.setGameService(gameService);
|
controller.setGameService(gameService);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user