|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.columbia.cs.cs1007.checkers.Move
public class Move
Implementation of a move of the checker board.
| Constructor Summary | |
|---|---|
Move(int sourceRow,
int sourceCol,
Constants.VERTICAL_DIRECTION verticalDir,
Constants.HORIZONTAL_DIRECTION horizontalDir)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getSourceColumn()
Get the column of the starting position. |
int |
getSourceRow()
Get the row of the starting position. |
int |
getTargetColumn()
Computer the column of the target position. |
int |
getTargetRow()
Compute the row of the target position. |
java.lang.String |
toString()
Generate a string representation of the move. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Move(int sourceRow,
int sourceCol,
Constants.VERTICAL_DIRECTION verticalDir,
Constants.HORIZONTAL_DIRECTION horizontalDir)
sourceRow - sourceCol - verticalDir - horizontalDir - | Method Detail |
|---|
public int getSourceRow()
public int getSourceColumn()
public int getTargetRow()
public int getTargetColumn()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||