|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ICardCollection defines the standard API for a collection of cards.
| Method Summary | |
void |
addCard(ICard card)
Adds the specified card to this collection and notifies the GUI listeners. |
Card |
getCardAt(int index)
Returns the card at the specified index. |
Card |
getNextCard()
Removes and returns the first card in this collection and notifies the GUI listeners. |
int |
getNumberOfCards()
Returns the number of cards in this collection. |
void |
setCards(java.util.List cards)
Sets the list of cards appearing in this collection and notifies the GUI listeners. |
| Methods inherited from interface com.amoebacode.blackjack.core.IGameObject |
addEventListener, getGame, getParent |
| Method Detail |
public Card getCardAt(int index)
index - the index of the card to retrievepublic int getNumberOfCards()
public Card getNextCard()
public void setCards(java.util.List cards)
cards - the new List of cards for this collectionpublic void addCard(ICard card)
card - the ICard to add to this collection
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||