|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs4099.Move
public class Move
A Move is a specification of a move made, including the ID values of the source and target piles along with a copy of the card that was moved.
Constructor Summary | |
---|---|
Move(int sourcepile,
int targetpile,
Card movedcard)
Creates a new Move with the specified properties. |
Method Summary | |
---|---|
boolean |
equals(Move othermove)
Compares this Move to another, returning true if the moves are equal. |
java.lang.String |
toString()
Creates a String representation of this move, for use in the Suggest list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Move(int sourcepile, int targetpile, Card movedcard)
sourcepile
- The ID of the source pile.targetpile
- The ID of the target pile.movedcard
- The card that was moved between the piles.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(Move othermove)
othermove
- The move to compare to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |