yostinso
Class MoveGRGCMove

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

public class MoveGRGCMove
extends Move

Move GardenRow - GardenColumn class (for undo purposes) Creation date: (11/29/2001 8:19:57 PM)

See Also:
Serialized Form

Field Summary
protected  GardenRow from
           
protected  int lastSelected
           
protected  Column movingColumn
           
protected  Column to
           
 
Constructor Summary
MoveGRGCMove(GardenRow from, Column movingColumn, Column to, int lastSelectionPoint)
           
 
Method Summary
 boolean doMove(Solitaire theGame)
           
 boolean undo(Solitaire game)
           
 boolean valid(Solitaire theGame)
          Validate move.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

protected GardenRow from

movingColumn

protected Column movingColumn

to

protected Column to

lastSelected

protected int lastSelected
Constructor Detail

MoveGRGCMove

public MoveGRGCMove(GardenRow from,
                    Column movingColumn,
                    Column to,
                    int lastSelectionPoint)
Method Detail

doMove

public boolean doMove(Solitaire theGame)

undo

public boolean undo(Solitaire game)

valid

public boolean valid(Solitaire theGame)
Validate move.