yostinso
Class MoveGCGCMove

java.lang.Object
  |
  +--Move
        |
        +--yostinso.MoveGCGCMove

public class MoveGCGCMove
extends Move

Move GardenColumn - GardenColumn class (for undo purposes) Creation date: (11/29/2001 7:47:27 PM)

See Also:
Serialized Form

Field Summary
protected  Column from
           
protected  Column movingColumn
           
protected  int numCards
           
protected  Column to
           
 
Constructor Summary
MoveGCGCMove(Column from, Column movingColumn, Column to, int numCards)
          MoveGCGCMove constructor comment.
 
Method Summary
 boolean doMove(Solitaire game)
           
 boolean undo(Solitaire game)
           
 boolean valid(Solitaire theGame)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

protected Column from

movingColumn

protected Column movingColumn

to

protected Column to

numCards

protected int numCards
Constructor Detail

MoveGCGCMove

public MoveGCGCMove(Column from,
                    Column movingColumn,
                    Column to,
                    int numCards)
MoveGCGCMove constructor comment.

Method Detail

doMove

public boolean doMove(Solitaire game)

undo

public boolean undo(Solitaire game)

valid

public boolean valid(Solitaire theGame)