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