|
|
@ -14,6 +14,7 @@ public class Player { |
|
|
|
private Game game; |
|
|
|
private String playerName; |
|
|
|
private boolean enemy; |
|
|
|
private Card currentCard; |
|
|
|
private final ArrayList<Card> playerDeck = new ArrayList<>(); |
|
|
|
|
|
|
|
public ArrayList<Card> getPlayerDeck() { |
|
|
@ -62,6 +63,15 @@ public class Player { |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
public Card getCurrentCard() { |
|
|
|
return currentCard; |
|
|
|
} |
|
|
|
|
|
|
|
public Player setCurrentCard(Card currentCard) { |
|
|
|
this.currentCard = currentCard; |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|
public PropertyChangeSupport listeners() { |
|
|
|
if(this.listeners == null) { |
|
|
|
this.listeners = new PropertyChangeSupport(this); |
|
|
|