◆ ChessPiece()
| ChessPiece.ChessPiece |
( |
int |
x, |
|
|
int |
y, |
|
|
PieceColor |
color |
|
) |
| |
|
inline |
- Parameters
-
| x | coordinate |
| y | coordinate |
| color | of piece |
◆ boardCharacter()
| char ChessPiece.boardCharacter |
( |
| ) |
|
|
inline |
board representation of typical piece or null needs to be overridden
- Returns
◆ getColor()
| PieceColor ChessPiece.getColor |
( |
| ) |
|
|
inline |
gets pieces color
- Returns
◆ getCoordinates()
| int [] ChessPiece.getCoordinates |
( |
| ) |
|
|
inline |
gets coordinaes of piece in array of length 2
- Returns
◆ isValidMove()
| boolean ChessPiece.isValidMove |
( |
ChessBoard |
chessBoard, |
|
|
int |
moveToX, |
|
|
int |
moveToY |
|
) |
| |
|
inline |
- Parameters
-
| chessBoard | we are playing to |
| moveToX | where we want to move piece to x |
| moveToY | where we want to move piece to y |
- Returns
◆ makeMove()
| boolean ChessPiece.makeMove |
( |
ChessBoard |
chessBoard, |
|
|
int |
moveToX, |
|
|
int |
moveToY |
|
) |
| |
|
inline |
- Parameters
-
| chessBoard | we are playing on |
| moveToX | |
| moveToY | |
- Returns
The documentation for this class was generated from the following file: