Package javachess.decorators
Class PawnDecorator
java.lang.Object
javachess.decorators.PieceDecorator
javachess.decorators.PawnDecorator
-
Field Summary
Fields inherited from class javachess.decorators.PieceDecorator
board, piece -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the valid cells for the pawn.Methods inherited from class javachess.decorators.PieceDecorator
checkValidCell
-
Constructor Details
-
PawnDecorator
-
-
Method Details
-
getValidCells
Get the valid cells for the pawn.- Overrides:
getValidCellsin classPieceDecorator- Returns:
- An ArrayList of valid cells for the pawn.
-