|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Move | +--yostinso.MoveGRSPMove
Represents the move of a card from the GardenRow to the SuitPile class
Creation date: (11/29/2001 8:20:16 PM)
Field Summary | |
protected GardenRow |
from
Source. |
protected int |
lastSelectionPoint
Where user last selected. |
protected Column |
movingColumn
Column being dragged. |
protected SuitPile |
to
Destination. |
Constructor Summary | |
MoveGRSPMove(GardenRow from,
Column movingColumn,
SuitPile to,
int lastSelectionPoint)
MoveGRSPMove constructor comment. |
Method Summary | |
boolean |
doMove(Solitaire theGame)
|
SuitPile |
getDestination()
Returns destination pile (calculated by valid method). |
boolean |
undo(Solitaire game)
Returns the card to the GardenRow by removing cards and inserting at proper place. |
boolean |
valid(Solitaire theGame)
Validate the validity of this move. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GardenRow from
protected Column movingColumn
protected SuitPile to
protected int lastSelectionPoint
Constructor Detail |
public MoveGRSPMove(GardenRow from, Column movingColumn, SuitPile to, int lastSelectionPoint)
Method Detail |
public boolean doMove(Solitaire theGame)
public SuitPile getDestination()
public boolean undo(Solitaire game)
public boolean valid(Solitaire theGame)
Note: the moving column must be composed of only a single card.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |