|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Piece | |
|---|---|
| model | |
| model.moves | |
| model.pieces | |
| Uses of Piece in model |
|---|
| Methods in model that return Piece | |
|---|---|
Piece |
Cell.getPiece()
accessor(selector): Returns the Piece from the specific Cell. |
| Methods in model with parameters of type Piece | |
|---|---|
void |
Cell.setPiece(Piece x)
transformer(mutative): Changes the Cell's Piece to the one passed as parameter. |
| Constructors in model with parameters of type Piece | |
|---|---|
Cell(int x,
int y,
java.awt.Color z,
Piece r)
constructor: Creates a new Cell with the given coordinates, the given color, and places a Piece on that Cell. |
|
| Uses of Piece in model.moves |
|---|
| Methods in model.moves with parameters of type Piece | |
|---|---|
void |
CapturePromotion.setPromotedTo(Piece what)
transformer(mutative): Sets the piece to be promoted to the one passed as argument. |
void |
Promotion.setPromotedTo(Piece what)
transformer(mutative):Sets the piece to be promoted to the one passed as argument. |
| Constructors in model.moves with parameters of type Piece | |
|---|---|
Capture(Cell a,
Cell b,
Piece r)
constructor: Creates a new Capture move. |
|
CapturePromotion(Cell sour,
Cell dest,
Piece capt)
constructor: Creates a new CapturePromotion move that needs a destination and a source cell. |
|
| Uses of Piece in model.pieces |
|---|
| Subclasses of Piece in model.pieces | |
|---|---|
class |
Bishop
Represents the Bishop piece |
class |
King
Represents the King piece |
class |
Knight
Represents the Knight piece |
class |
Pawn
Represents the Pawn piece |
class |
Queen
Represents the Queen piece |
class |
Rook
Represents the Rook piece |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||