|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Piece in boardGame |
|---|
| Subclasses of Piece in boardGame | |
|---|---|
class |
RoundPiece
Example playing piece. |
| Methods in boardGame that return Piece | |
|---|---|
Piece |
Board.getPiece(int row,
int column)
Returns the topmost piece at the given row and column in this board, or null if the given location is empty. |
Piece |
Board.getSelectedPiece()
Returns the currently selected piece, or null if
no piece has been selected on this board. |
Piece |
Board.remove(int row,
int column)
Removes the top piece at the given row and column on this board. |
| Methods in boardGame that return types with arguments of type Piece | |
|---|---|
java.util.Stack<Piece> |
Board.getPieces(int row,
int column)
Returns a (possibly empty) Stack of all the pieces in the given position. |
| Methods in boardGame with parameters of type Piece | |
|---|---|
void |
Board.place(Piece piece,
int row,
int column)
Places the given piece at the given location in this board. |
boolean |
Board.remove(Piece piece)
Removes this piece from the board. |
void |
Board.setSelectedPiece(Piece selectedPiece)
Mark the given piece as the selected one; unmark any previously selected piece. |
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||