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