|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ks.common.model.Move | +--heineman.klondike.DealCardMove
Represents the moving of a card from the deck to the waste pile.
There are two parameters for this move:
deck = Deck which deals the cards
wastePile = Pile to which the card is dealt.
Creation date: (10/28/01 8:50:54 AM)
Field Summary | |
protected Deck |
deck
The deck. |
protected Pile |
wastePile
The wastePile. |
Constructor Summary | |
DealCardMove(Deck deck,
Pile wastePile)
DealCardMove constructor. |
Method Summary | |
boolean |
doMove(ks.common.games.Solitaire game)
Do Move |
boolean |
undo(ks.common.games.Solitaire game)
To undo this move, we move the cards from the wastePile back to the Deck. |
boolean |
valid(ks.common.games.Solitaire game)
Action for Klondike: Deal card from deck to wastePile. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Deck deck
protected Pile wastePile
Constructor Detail |
public DealCardMove(Deck deck, Pile wastePile)
Method Detail |
public boolean doMove(ks.common.games.Solitaire game)
public boolean undo(ks.common.games.Solitaire game)
public boolean valid(ks.common.games.Solitaire game)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |