This commit is contained in:
@@ -178,11 +178,8 @@ public class Window extends JFrame implements GameListener, CommandSender {
|
||||
}
|
||||
|
||||
private void updateButtons() {
|
||||
CastlingResult castlings = getAllowedCastlings();
|
||||
this.castlingButton.setEnabled(
|
||||
castlings == CastlingResult.Small || castlings == CastlingResult.Both);
|
||||
this.bigCastlingButton.setEnabled(
|
||||
castlings == CastlingResult.Big || castlings == CastlingResult.Both);
|
||||
this.castlingButton.setEnabled(canDoCastling());
|
||||
this.bigCastlingButton.setEnabled(canDoBigCastling());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -292,7 +289,7 @@ public class Window extends JFrame implements GameListener, CommandSender {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCastling(boolean bigCastling) {}
|
||||
public void onCastling(boolean bigCastling, Move kingMove, Move rookMove) {}
|
||||
|
||||
@Override
|
||||
public void onPawnPromoted(PromoteType promotion) {}
|
||||
|
||||
Reference in New Issue
Block a user