heineman.klondike
Class MoveWasteToPileMove

java.lang.Object
  |
  +--ks.common.model.Move
        |
        +--heineman.klondike.MoveWasteToPileMove

public class MoveWasteToPileMove
extends ks.common.model.Move

Represents the move of a card from the waste pile to a buildable pile

See Also:
Serialized Form

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

waste

protected Pile waste
The waste pile.


to

protected BuildablePile to
The Destination column.


cardBeingDragged

protected Card cardBeingDragged
The card being dragged (if the move has already been made).

Constructor Detail

MoveWasteToPileMove

public MoveWasteToPileMove(Pile waste,
                           Card cardBeingDragged,
                           BuildablePile toPile)
MoveWasteToFoundationMove constructor comment.

Method Detail

doMove

public boolean doMove(Solitaire theGame)
Each move should knows how to execute itself.

Creation date: (10/21/01 3:33:39 PM)

Returns:
boolean
Since:
V1.6.2

undo

public boolean undo(ks.common.games.Solitaire game)
Move the card back to the waste pile (can only be one card)


valid

public boolean valid(Solitaire theGame)
Action for Klondike: Move a card to from the Waste Pile to a Buildable Pile