Esempio n. 1
0
 protected Card drawFromDeck(int index) {
   Card card = deck.drawCard(index);
   if (card == null) {
     return null;
   }
   card.setInHand(true);
   return card;
 }
Esempio n. 2
0
 public void placeCardHand(Card card) {
   if (hand.isFull()) return;
   card.setInHand(true);
   hand.add(card);
 }