public class Hand extends CardGroup
Hand class extends CardGroup,
it consists in a group of cards representing a playerCardGroup,
Card,
Serialized Form| Constructor and Description |
|---|
Hand(int NB_MAX_CARDS)
Constructs a hand
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkHasPetitSec()
Check if a hand has Petit Sec
(First of Trump as only Trump and no excuse)
|
Bids |
getBidChosen() |
static int |
getNbHands() |
static void |
resetClass()
Reset static field
|
void |
setBidChosen(Bids bidChosen) |
add, addAll, cardListToString, equals, findInCardsList, getInCardsList, getNbMaxCards, hashCodeadd, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic Hand(int NB_MAX_CARDS)
throws CardGroupNumberException
NB_MAX_CARDS - the number max of card that CardGroup can acceptCardGroupNumberException - if user tries to create too much handspublic boolean checkHasPetitSec()
public static void resetClass()
public static int getNbHands()
public Bids getBidChosen()
public void setBidChosen(Bids bidChosen)