From ec91d12c76b1b855251a03c961363ac44de3fb48 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Tue, 6 Feb 2024 21:22:27 +0100 Subject: [PATCH] add gameOver to Game --- src/main/java/de/hsfulda/onses/models/Game.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/models/Game.java b/src/main/java/de/hsfulda/onses/models/Game.java index 6a64133..5072b7c 100644 --- a/src/main/java/de/hsfulda/onses/models/Game.java +++ b/src/main/java/de/hsfulda/onses/models/Game.java @@ -10,6 +10,8 @@ public class Game { private GameService gameService; private PlayerService playerService; + private boolean gameOver; + private final ArrayList drawCardDeck = new ArrayList<>(); private Card lastPlayedCard = null; @@ -56,4 +58,12 @@ public class Game { { this.playerService = new PlayerService().setGame(this); } + + public void setGameOver(boolean gameOver) { + this.gameOver = gameOver; + } + + public boolean getGameOver() { + return gameOver; + } }