heineman.klondike
Class MoveCardToFoundationMove

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

public class MoveCardToFoundationMove
extends ks.common.model.Move

Represents the move of a card to the Foundation from a Column

See Also:
Serialized Form

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

buildablePile

protected BuildablePile buildablePile
The BuildablePile.


draggingCard

protected Card draggingCard
The card being dragged (if at all).


foundation

protected Pile foundation
The destination Foundation Pile.

Constructor Detail

MoveCardToFoundationMove

public MoveCardToFoundationMove(BuildablePile bp,
                                Card card,
                                Pile foundation)
MoveCardToFoundationmove constructor comment.

Method Detail

doMove

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

Returns:
boolean

undo

public boolean undo(Solitaire game)
undo method.


valid

public boolean valid(ks.common.games.Solitaire game)
Action for Klondike: BuildablePile card draggged to Foundation Pile