|
|
@ -10,6 +10,8 @@ public class Game { |
|
|
|
private GameService gameService; |
|
|
|
private PlayerService playerService; |
|
|
|
|
|
|
|
private boolean gameOver; |
|
|
|
|
|
|
|
private final ArrayList<Card> 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; |
|
|
|
} |
|
|
|
} |