refactor OutputSystem

This commit is contained in:
2025-04-12 11:12:36 +02:00
parent 0d3d77781f
commit 8190090adc
19 changed files with 176 additions and 49 deletions

View File

@@ -1,5 +1,6 @@
package chess.controller;
import chess.controller.event.GameListener;
import chess.model.Game;
public abstract class Command {
@@ -15,7 +16,7 @@ public abstract class Command {
NotAllowed;
}
public abstract CommandResult execute(Game game, OutputSystem outputSystem);
public abstract CommandResult execute(Game game, GameListener outputSystem);
public void postExec(Game game, OutputSystem outputSystem) {}
public void postExec(Game game, GameListener outputSystem) {}
}