|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.plugins.pokergames.Hand
public class Hand
container for cards
Constructor Summary | |
---|---|
Hand()
constructor for an empty hand |
|
Hand(Hand hand)
Constructor for copying a hand |
|
Hand(ParserHand info)
constructor |
Method Summary | |
---|---|
void |
addCard(Card card1)
add given card to the hand |
boolean |
containsCard(Card crd)
|
Card |
getCard(int pos)
|
java.util.ArrayList<Card> |
getCards()
|
void |
removeCard()
|
void |
removeCard(int index)
remove card from the given index |
void |
setCards(java.util.ArrayList<Card> cards)
Put the given list of cards to be this hand |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hand()
public Hand(ParserHand info)
info
- public Hand(Hand hand)
hand
- Method Detail |
---|
public boolean containsCard(Card crd)
crd
- card asked for
public void addCard(Card card1)
card1
- card to addpublic Card getCard(int pos)
pos
-
public int size()
public java.util.ArrayList<Card> getCards()
public void setCards(java.util.ArrayList<Card> cards)
cards
- public void removeCard()
public void removeCard(int index)
index
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |