|
|||||||||||
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.MoveWasteToPileMove
Represents the move of a card from the waste pile to a buildable pile
Field Summary | |
protected Card |
cardBeingDragged
The card being dragged (if the move has already been made). |
protected BuildablePile |
to
The Destination column. |
protected Pile |
waste
The waste pile. |
Constructor Summary | |
MoveWasteToPileMove(Pile waste,
Card cardBeingDragged,
BuildablePile toPile)
MoveWasteToFoundationMove constructor comment. |
Method Summary | |
boolean |
doMove(Solitaire theGame)
Each move should knows how to execute itself. |
boolean |
undo(ks.common.games.Solitaire game)
Move the card back to the waste pile (can only be one card) |
boolean |
valid(Solitaire theGame)
Action for Klondike: Move a card to from the Waste Pile to a Buildable Pile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Pile waste
protected BuildablePile to
protected Card cardBeingDragged
Constructor Detail |
public MoveWasteToPileMove(Pile waste, Card cardBeingDragged, BuildablePile toPile)
Method Detail |
public boolean doMove(Solitaire theGame)
Creation date: (10/21/01 3:33:39 PM)
public boolean undo(ks.common.games.Solitaire game)
public boolean valid(Solitaire theGame)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |