heineman.klondike
Class FlipCardMove

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

public class FlipCardMove
extends ks.common.model.Move

Represents the flip of a BuildablePile card.

See Also:
Serialized Form

Field Summary
protected  BuildablePile pile
          The affected pile.
 
Constructor Summary
FlipCardMove(BuildablePile bp)
          Represents the flip of a card on a BuildablePile.
 
Method Summary
 boolean doMove(ks.common.games.Solitaire game)
          Flip card in this BuildablePile
 boolean undo(ks.common.games.Solitaire game)
          undo Flip by calling flipCard()
 boolean valid(ks.common.games.Solitaire game)
          Action for Klondike: Flip BuildablePile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pile

protected BuildablePile pile
The affected pile.

Constructor Detail

FlipCardMove

public FlipCardMove(BuildablePile bp)
Represents the flip of a card on a BuildablePile.

Creation date: (11/10/01 11:02:58 PM)

Parameters:
bp - ks.games.klondike.BuildablePile
Method Detail

doMove

public boolean doMove(ks.common.games.Solitaire game)
Flip card in this BuildablePile


undo

public boolean undo(ks.common.games.Solitaire game)
undo Flip by calling flipCard()


valid

public boolean valid(ks.common.games.Solitaire game)
Action for Klondike: Flip BuildablePile