|
|||||||||||
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.MoveCardToFoundationMove
Represents the move of a card to the Foundation from a Column
Field Summary | |
protected BuildablePile |
buildablePile
The BuildablePile. |
protected Card |
draggingCard
The card being dragged (if at all). |
protected Pile |
foundation
The destination Foundation Pile. |
Constructor Summary | |
MoveCardToFoundationMove(BuildablePile bp,
Card card,
Pile foundation)
MoveCardToFoundationmove constructor comment. |
Method Summary | |
boolean |
doMove(Solitaire theGame)
Each move should knows how to execute itself. |
boolean |
undo(Solitaire game)
undo method. |
boolean |
valid(ks.common.games.Solitaire game)
Action for Klondike: BuildablePile card draggged to Foundation Pile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BuildablePile buildablePile
protected Card draggingCard
protected Pile foundation
Constructor Detail |
public MoveCardToFoundationMove(BuildablePile bp, Card card, Pile foundation)
Method Detail |
public boolean doMove(Solitaire theGame)
public boolean undo(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 |