almost working

This commit is contained in:
2025-04-18 18:42:28 +02:00
parent b83726925e
commit 4a58136afe
12 changed files with 232 additions and 16 deletions

View File

@@ -6,6 +6,7 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.function.Consumer;
import chess.controller.commands.PromoteCommand.PromoteType;
import chess.model.Color;
import chess.model.Coordinate;
import chess.model.Move;
@@ -93,6 +94,16 @@ public class GameDispatcher implements GameListener {
asyncForEachCall((l) -> l.onDraw());
}
@Override
public void onCastling(boolean bigCastling) {
asyncForEachCall((l) -> l.onCastling(bigCastling));
}
@Override
public void onPawnPromoted(PromoteType promotion, Color player) {
asyncForEachCall((l) -> l.onPawnPromoted(promotion, player));
}
public void stopService() {
this.executor.shutdown();
}