|
@ -12,6 +12,7 @@ public class Player { |
|
|
|
|
|
|
|
|
private PlayerService playerService; |
|
|
private PlayerService playerService; |
|
|
private Game game; |
|
|
private Game game; |
|
|
|
|
|
private String playerName; |
|
|
private final ArrayList<Card> playerDeck = new ArrayList<>(); |
|
|
private final ArrayList<Card> playerDeck = new ArrayList<>(); |
|
|
|
|
|
|
|
|
public ArrayList<Card> getPlayerDeck() { |
|
|
public ArrayList<Card> getPlayerDeck() { |
|
@ -42,6 +43,15 @@ public class Player { |
|
|
return this; |
|
|
return this; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getPlayerName() { |
|
|
|
|
|
return playerName; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Player setPlayerName(String playerName) { |
|
|
|
|
|
this.playerName = playerName; |
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public PropertyChangeSupport listeners() { |
|
|
public PropertyChangeSupport listeners() { |
|
|
if(this.listeners == null) { |
|
|
if(this.listeners == null) { |
|
|
this.listeners = new PropertyChangeSupport(this); |
|
|
this.listeners = new PropertyChangeSupport(this); |
|
|