323334353637383940
if (cards[i] == null) { cards[i] = cardSet.consumeRandomCard(); } } firePlayerHandChangeEvent(new PlayerHandChangeEvent( this, PlayerHandChangeEvent.CARDS )); }
697071727374757677
} private void setSelectedIndex(int selectedIndex) { this.selectedIndex = selectedIndex; firePlayerHandChangeEvent(new PlayerHandChangeEvent( this, PlayerHandChangeEvent.SELECTION)); }
120121122123124125126127128129
if (selectedCard != null) { ICard newCard = cardSet.switchCard(selectedCard); cards[index] = newCard; firePlayerHandChangeEvent(new PlayerHandChangeEvent( this, PlayerHandChangeEvent.CARDS )); } }