|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use Piece | |
| game | The main class of this package is Board, which represents a checkerboard for any kind of checkerboard game -- checkers, chess, etc. |
| game.checkers | Classes for the game of checkers (also called draughts). |
| Uses of Piece in game |
| Methods in game that return Piece | |
Piece |
PieceLocation.getPiece()
Get the piece referenced by this piece location. |
Piece |
Board.getPieceAt(int row,
int col)
Get the piece found at a given row and column. |
| Methods in game with parameters of type Piece | |
PieceLocation |
Board.find(Piece piece)
Get a piece's location on this board. |
void |
Board.add(Piece piece,
int row,
int col)
Add a new piece to this board. |
void |
Board.move(Piece piece,
int toRow,
int toCol)
Move a piece from its current square on this board to a new square. |
void |
Board.remove(Piece piece)
Remove a piece from this board. |
| Constructors in game with parameters of type Piece | |
PieceLocation(Board board,
Piece piece,
int row,
int col)
Make a PieceLocation. |
|
| Uses of Piece in game.checkers |
| Classes in game.checkers that implement Piece | |
class |
Checker
Checker represents a checker piece (either red or black). |
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||