|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface has to be implemented by any chess position.
Method Summary | |
boolean |
equals(Position pos)
Test if 2 positions are equal. |
int |
getLineIndex()
Get the line index of this position. |
int |
getRowIndex()
Get the row index of this position. |
int |
getSquareIndex()
Get the square index of this position instance. |
void |
setSquareIndex(int index)
The square index of this position instance. |
java.lang.String |
toSquareName()
Get the name of this square. |
Method Detail |
public int getSquareIndex()
public void setSquareIndex(int index)
index
- The square index of this position (0-63).public int getRowIndex()
public int getLineIndex()
public java.lang.String toSquareName()
public boolean equals(Position pos)
Another
- position.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |