public class ChessBoardCoord extends Object implements Comparable<ChessBoardCoord>, Serializable
| Constructor and Description |
|---|
ChessBoardCoord(int offset) |
ChessBoardCoord(int offset,
boolean inverted) |
ChessBoardCoord(int col,
int row) |
ChessBoardCoord(String pgnCoord) |
| Modifier and Type | Method and Description |
|---|---|
ChessBoardCoord |
add(ChessBoardCoord coord) |
ChessBoardCoord |
add(int x,
int y) |
int |
compareTo(ChessBoardCoord o) |
boolean |
equals(Object obj) |
static SortedSet<ChessBoardCoord> |
getAllBoardCoords() |
int |
getCol() |
static int |
getColFromName(String colName) |
int |
getOffset() |
int |
getOffset(boolean inverted) |
String |
getPgnCoordinates() |
int |
getRow() |
static int |
getRowFromName(String rowName) |
int |
hashCode() |
String |
toString() |
public ChessBoardCoord(String pgnCoord)
public ChessBoardCoord(int col,
int row)
public ChessBoardCoord(int offset)
public ChessBoardCoord(int offset,
boolean inverted)
public static int getRowFromName(String rowName)
public static int getColFromName(String colName)
public int getOffset()
public int getOffset(boolean inverted)
public int getRow()
public int getCol()
public String getPgnCoordinates()
public ChessBoardCoord add(ChessBoardCoord coord)
public ChessBoardCoord add(int x, int y)
public static SortedSet<ChessBoardCoord> getAllBoardCoords()
public int compareTo(ChessBoardCoord o)
compareTo in interface Comparable<ChessBoardCoord>Copyright © 2014. All Rights Reserved.