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
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 |
from
protected GardenRow from
movingColumn
protected Column movingColumn
to
protected Column to
lastSelected
protected int lastSelected
MoveGRGCMove
public MoveGRGCMove(GardenRow from,
Column movingColumn,
Column to,
int lastSelectionPoint)
doMove
public boolean doMove(Solitaire theGame)
undo
public boolean undo(Solitaire game)
valid
public boolean valid(Solitaire theGame)
- Validate move.