|
@ -23,6 +23,7 @@ public class Player { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void addCardToPlayerDeck(Card card) { |
|
|
public void addCardToPlayerDeck(Card card) { |
|
|
|
|
|
card.setPlayer(this); |
|
|
final ArrayList<Card> oldplayerDeck = new ArrayList<>(this.playerDeck); |
|
|
final ArrayList<Card> oldplayerDeck = new ArrayList<>(this.playerDeck); |
|
|
playerDeck.add(card); |
|
|
playerDeck.add(card); |
|
|
this.firePropertyChange(PROPERTY_PLAYER_DECK, oldplayerDeck, playerDeck); |
|
|
this.firePropertyChange(PROPERTY_PLAYER_DECK, oldplayerDeck, playerDeck); |
|
|