|
|
| Bishop (int x, int y, PieceColor color) |
| |
| boolean | isValidMove (ChessBoard chessBoard, int moveToX, int moveToY) |
| |
| boolean | checkDiagonal (ChessBoard chessBoard, int startX, int startY, int endX, int endY) |
| |
| char | boardCharacter () |
| |
| | ChessPiece (int x, int y, PieceColor color) |
| |
| boolean | makeMove (ChessBoard chessBoard, int moveToX, int moveToY) |
| |
| char | boardCharacter () |
| |
| boolean | isValidMove (ChessBoard chessBoard, int moveToX, int moveToY) |
| |
| int [] | getCoordinates () |
| |
| PieceColor | getColor () |
| |
◆ boardCharacter()
| char Bishop.boardCharacter |
( |
| ) |
|
|
inline |
- Returns
- character representation on board
◆ checkDiagonal()
| boolean Bishop.checkDiagonal |
( |
ChessBoard |
chessBoard, |
|
|
int |
startX, |
|
|
int |
startY, |
|
|
int |
endX, |
|
|
int |
endY |
|
) |
| |
|
inline |
- Parameters
-
| chessBoard | itself |
| startX | where chesspiece is starting x coordinate |
| startY | where chesspiece is starting y coordinate |
| endX | where chesspiece is ending x coordinate |
| endY | where chesspiece is ending |
- Returns
- checks diagonals and see if its a valid move
◆ isValidMove()
| boolean Bishop.isValidMove |
( |
ChessBoard |
chessBoard, |
|
|
int |
moveToX, |
|
|
int |
moveToY |
|
) |
| |
|
inline |
- Parameters
-
| chessBoard | itself |
| moveToX | where to move to x coordinate |
| moveToY | where to move to y coordinate |
- Returns
- whether given move is a valid move
The documentation for this class was generated from the following file: