Browse Source

add gameOver to Game

main
fdai7793 11 months ago
parent
commit
ec91d12c76
  1. 10
      src/main/java/de/hsfulda/onses/models/Game.java

10
src/main/java/de/hsfulda/onses/models/Game.java

@ -10,6 +10,8 @@ public class Game {
private GameService gameService; private GameService gameService;
private PlayerService playerService; private PlayerService playerService;
private boolean gameOver;
private final ArrayList<Card> drawCardDeck = new ArrayList<>(); private final ArrayList<Card> drawCardDeck = new ArrayList<>();
private Card lastPlayedCard = null; private Card lastPlayedCard = null;
@ -56,4 +58,12 @@ public class Game {
{ {
this.playerService = new PlayerService().setGame(this); this.playerService = new PlayerService().setGame(this);
} }
public void setGameOver(boolean gameOver) {
this.gameOver = gameOver;
}
public boolean getGameOver() {
return gameOver;
}
} }
Loading…
Cancel
Save