yostinso
Class MoveGCSPMove

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

public class MoveGCSPMove
extends Move

Move GardenColumn - SuitPile class (for undo purposes) Creation date: (11/29/2001 8:20:28 PM)

See Also:
Serialized Form

Field Summary
protected  Column from
          From.
protected  Column movingColumn
          Column being dragged.
protected  SuitPile to
          Destination.
 
Constructor Summary
MoveGCSPMove(Column from, Column movingColumn, SuitPile to)
           
 
Method Summary
 boolean doMove(Solitaire theGame)
           
 SuitPile getDestination()
          Returns destination pile (calculated by valid method).
 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
From.


movingColumn

protected Column movingColumn
Column being dragged.


to

protected SuitPile to
Destination.

Constructor Detail

MoveGCSPMove

public MoveGCSPMove(Column from,
                    Column movingColumn,
                    SuitPile to)
Method Detail

doMove

public boolean doMove(Solitaire theGame)

getDestination

public SuitPile getDestination()
Returns destination pile (calculated by valid method).


undo

public boolean undo(Solitaire game)

valid

public boolean valid(Solitaire theGame)