Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
E
F
G
H
I
M
P
S
T
V
B
board
- Variable in class
Board
This is the array of ChessPieces.
Board
- class
Board
.
This is the board object that will hold references to pieces in the arrangement they are found on the chess board.
Board()
- Constructor for class
Board
Builds a new board setup to start a new game of chess.
Board(Board)
- Constructor for class
Board
Builds a new board based on the given board.
C
ChessPiece
- class
ChessPiece
.
This is the class used for building all chess pieces.
ChessPiece(int, boolean)
- Constructor for class
ChessPiece
Builds a new chess piece based on the given type and color.
copy()
- Method in class
Board
Returns a field for field copy of this object.
copy()
- Method in class
ChessPiece
Returns a field for field copy of this object.
E
evaluate()
- Method in class
Board
Returns the current material value of the board.
F
firstMove()
- Method in class
ChessPiece
Needs to be called the first time the piece has moved.
G
getDestCol()
- Method in class
Move
Returns the destination column.
getDestRow()
- Method in class
Move
Returns the destination row.
getPiece(int, int)
- Method in class
Board
Returns the piece at the specified location.
getSourceCol()
- Method in class
Move
Returns the source column.
getSourceRow()
- Method in class
Move
Returns the source row.
H
hasMoved()
- Method in class
ChessPiece
Needed for king (castling), rooks (castling), and pawns (they can move two spaces initially).
I
isWhite()
- Method in class
ChessPiece
Returns true if the piece is white.
M
Move
- class
Move
.
This class is used for representing moves in object form.
Move(int, int, int, int)
- Constructor for class
Move
Builds a move object using the given data.
movePiece(Move)
- Method in class
Board
Makes a move according to the specified Move object, taking pieces if needed (by simply overwriting their spot in the array), leaving a null reference behind where the piece was originally located.
P
promotePawn(int)
- Method in class
ChessPiece
This is called when a pawn reaches the other side of the board, allowing it to change into one of the other types of pieces.
S
setDestination(int, int)
- Method in class
Move
Sets the destination square.
setPiece(int, int, ChessPiece)
- Method in class
Board
Used to add pieces to the board.
setSource(int, int)
- Method in class
Move
Sets the source square.
setupPiece(int, boolean)
- Method in class
ChessPiece
Sets up the piece according to the given data.
T
TYPE_BISHOP
- Static variable in class
ChessPiece
Integer constant representing a bishop.
TYPE_KING
- Static variable in class
ChessPiece
Integer constant representing a king.
TYPE_KNIGHT
- Static variable in class
ChessPiece
Integer constant representing a knight.
TYPE_PAWN
- Static variable in class
ChessPiece
Integer constant representing a pawn.
TYPE_QUEEN
- Static variable in class
ChessPiece
Integer constant representing a queen.
TYPE_ROOK
- Static variable in class
ChessPiece
Integer constant representing a rook.
type()
- Method in class
ChessPiece
Returns an integer representing the type of piece: pawn, knight, bishop, rook, queen, or king.
V
VALUE_BISHOP
- Static variable in class
ChessPiece
Integer constant holding the point value of a bishop.
VALUE_KING
- Static variable in class
ChessPiece
Integer constant holding the point value of a king.
VALUE_KNIGHT
- Static variable in class
ChessPiece
Integer constant holding the point value of a knight.
VALUE_PAWN
- Static variable in class
ChessPiece
Integer constant holding the point value of a pawn.
VALUE_QUEEN
- Static variable in class
ChessPiece
Integer constant holding the point value of a queen.
VALUE_ROOK
- Static variable in class
ChessPiece
Integer constant holding the point value of a rook.
value()
- Method in class
ChessPiece
Returns the material value of the piece.
B
C
E
F
G
H
I
M
P
S
T
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes