|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Piece | |
---|---|
rules |
Uses of Piece in rules |
---|
Methods in rules that return Piece | |
---|---|
Piece |
Piece.destroy()
Returns the "null piece", or a piece that has no defined colour or piece type. |
Piece[] |
Position.getBlackPieces()
Returns an array containing all the black pieces. |
static Piece |
Piece.getNullPiece()
Returns the null piece. |
Piece |
Position.getSquareOccupier(byte square)
Returns the occupier of a specific square, or the null piece if the square is empty. |
Piece |
Position.getSquareOccupier(byte square,
boolean toSearch)
Returns the occupier of a specific square, or the null piece if the square is empty. |
Piece |
Position.getSquareOccupier(byte square,
Piece[] map)
Returns the occupier of a specific square, or the null piece if the square is empty. |
Piece[] |
Position.getWhitePieces()
Returns an array containing all the white pieces. |
Piece |
Piece.move(byte difference)
Moves a piece a 0x88 difference in decimal, that is, the difference between 0x58 and 0x70 is actually not 12. |
Piece |
Piece.move(Move m)
Applies a Move m to this object. |
Methods in rules with parameters of type Piece | |
---|---|
Piece |
Position.getSquareOccupier(byte square,
Piece[] map)
Returns the occupier of a specific square, or the null piece if the square is empty. |
boolean |
Piece.isEqual(Piece other)
Compares this piece to another piece for equality. |
Constructors in rules with parameters of type Piece | |
---|---|
Position(byte fifty_move,
byte epsq,
boolean[] castling_rights,
boolean whiteturn,
Piece[] w_map,
Piece[] b_map)
Constructor: Constructs a board objects with the following parameters: |
|
Position(byte fifty_move,
byte epsq,
boolean[] castling_rights,
boolean whiteturn,
Piece[] w_map,
Piece[] b_map)
Constructor: Constructs a board objects with the following parameters: |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |