package chess.ai.actions; import chess.controller.CommandExecutor; import chess.controller.commands.CastlingCommand; /** * Manage the transition between model and bots when it comes to Castling command. */ public class AIActionCastling extends AIAction{ private final boolean bigCastling; public AIActionCastling(CommandExecutor commandExecutor, boolean bigCastling) { super(commandExecutor); this.bigCastling = bigCastling; } @Override public void applyAction(CommandExecutor commandExecutor) { sendCommand(new CastlingCommand(this.bigCastling), commandExecutor); } }