|
@ -7,6 +7,7 @@ import java.util.ArrayList; |
|
|
public class Player { |
|
|
public class Player { |
|
|
|
|
|
|
|
|
private PlayerService playerService; |
|
|
private PlayerService playerService; |
|
|
|
|
|
private Game game; |
|
|
private final ArrayList<Card> playerDeck = new ArrayList<>(); |
|
|
private final ArrayList<Card> playerDeck = new ArrayList<>(); |
|
|
|
|
|
|
|
|
public ArrayList<Card> getPlayerDeck() { |
|
|
public ArrayList<Card> getPlayerDeck() { |
|
@ -27,4 +28,13 @@ public class Player { |
|
|
this.playerService = playerService; |
|
|
this.playerService = playerService; |
|
|
return this; |
|
|
return this; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Game getGame() { |
|
|
|
|
|
return game; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Player setGame(Game game) { |
|
|
|
|
|
this.game = game; |
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
} |
|
|
} |