|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCardPile
Tableau
public class Tableau
The tableau class contains the state of a tableau (the cards it holds, the size) by using a Stack to hold the cards. A stack is a good implementation for this object because you cannot move a card in the tableau without first moving the bottom card.
| Constructor Summary | |
|---|---|
Tableau()
|
|
| Method Summary | |
|---|---|
boolean |
isAddable(Card card)
Checks to see if adding a card to this tableau is a legal move. |
static void |
main(java.lang.String[] args)
Main method, checks whether there are bugs in class |
| Methods inherited from class CardPile |
|---|
addCard, clear, dealCard, forceAddCard, getCard, getMaxSize, getPileID, getSize, getSuit, getVisibleCard, isEmpty, isFull, isRemovable, isSameSuit, maxVisibleCount, removeCard, setID, setMaxSize, setSuit, setView, update, visibleCardCount |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tableau()
| Method Detail |
|---|
public boolean isAddable(Card card)
isAddable in interface ICardPileisAddable in class CardPilecard - the card to be added
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||