|
| | Rook (int x, int y, PieceColor color) |
| |
| boolean | isValidMove (ChessBoard chessBoard, int moveToX, int moveToY) |
| |
| boolean | checkColsRows (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 () |
| |
◆ Rook()
| Rook.Rook |
( |
int |
x, |
|
|
int |
y, |
|
|
PieceColor |
color |
|
) |
| |
|
inline |
- Parameters
-
| x | starting x coordinate |
| y | starting y coordinate |
| color | of piece |
◆ boardCharacter()
| char Rook.boardCharacter |
( |
| ) |
|
|
inline |
- Returns
- character representation on board
◆ checkColsRows()
| boolean Rook.checkColsRows |
( |
ChessBoard |
chessBoard, |
|
|
int |
startX, |
|
|
int |
startY, |
|
|
int |
endX, |
|
|
int |
endY |
|
) |
| |
|
inline |
- Parameters
-
| chessBoard | we are playing on |
| startX | where the piece starts x |
| startY | where the piece starts y |
| endX | where we want piece to move to x |
| endY | where we want piece to move to y |
- Returns
◆ isValidMove()
| boolean Rook.isValidMove |
( |
ChessBoard |
chessBoard, |
|
|
int |
moveToX, |
|
|
int |
moveToY |
|
) |
| |
|
inline |
- Parameters
-
| chessBoard | we are playing on |
| moveToX | where we want piece to move to x |
| moveToY | where we want piece to move to y |
- Returns
The documentation for this class was generated from the following file: