|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcommon.Hand
public class Hand
| Field Summary | |
|---|---|
static int |
DONE
Indicates that the status of this hand as done playing. |
static int |
PLAYING
Indicates that the status of this hand is playing. |
| Constructor Summary | |
|---|---|
Hand(int maxDelt)
Constructs a Hand object which is a Vector of Card objects that can hold at most maxDelt cards. |
|
| Method Summary | |
|---|---|
void |
addCard(Card c)
Adds a Card object to the hand at the end of the Hand. |
void |
addCard(Card[] c)
Adds an array of Card objects to this hand. |
void |
clearHand()
Removes all the cards from a hand. |
boolean |
contains(Card c)
Returns true if this card is in the hand, false otherwise. |
java.util.Vector<java.lang.Integer> |
getBlackjackValues()
Returns an Vector of possible values that a blackjack hand can be. |
int |
getCardCount()
Return the number of cards in the hand. |
int |
getStatus()
Gets the play status of the Client of this Hand. |
void |
removeCard(Card c)
Removes the specified card from the hand. |
void |
removeCardAt(int position)
Removes the card at the specified position from the hand. |
void |
setStatus(int s)
Sets the playing status of the Client of this Hand. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PLAYING
public static final int DONE
| Constructor Detail |
|---|
public Hand(int maxDelt)
maxDelt cards.
maxDelt - int| Method Detail |
|---|
public void clearHand()
public void addCard(Card c)
c - Card that is being added to the hand.public void addCard(Card[] c)
c - Card[]public void removeCard(Card c)
c - Card that is removed from the hand.public void removeCardAt(int position)
position - int the position from which the card is to be removed.public int getCardCount()
public int getStatus()
public boolean contains(Card c)
c - Card that you're looking for.
public void setStatus(int s)
s - intpublic java.util.Vector<java.lang.Integer> getBlackjackValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||