de.java_chess.javaChess.ply
Interface CastlingPly
- All Known Implementing Classes:
- CastlingPlyImpl
- public interface CastlingPly
- extends Ply
This interface defines the functionality for a castling ply.
Method Summary |
boolean |
isLeftCastling()
Check, if this castling goes to the left side of the board. |
void |
setLeftCastling(boolean goesLeft)
Set the flag, if the castling goes left. |
isLeftCastling
public boolean isLeftCastling()
- Check, if this castling goes to the left side of the board.
- Returns:
- true, if the castling goes to the left side, false otherwise.
setLeftCastling
public void setLeftCastling(boolean goesLeft)
- Set the flag, if the castling goes left.
- Parameters:
goesLeft
- Flag to indicate if the castling goes left.