21 lines
499 B
Java
21 lines
499 B
Java
package chess.ai.actions;
|
|
|
|
import chess.controller.CommandExecutor;
|
|
import chess.controller.commands.CastlingCommand;
|
|
|
|
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);
|
|
}
|
|
|
|
}
|