Merge branch 'feat/use-real-lobby-id' into 'main'

Feat: uses real lobby id and not hardcoded id

See merge request cs108-fs26/Gruppe-13!128
This commit was merged in pull request #284.
This commit is contained in:
Jona Walpert
2026-04-14 21:31:12 +00:00
@@ -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);