3d promote (Fixes #14)
All checks were successful
Linux arm64 / Build (push) Successful in 35s

This commit is contained in:
2025-05-18 12:18:09 +02:00
parent fd9aabb6a1
commit 523eb094e1
11 changed files with 82 additions and 37 deletions

View File

@@ -2,6 +2,7 @@ package chess.view.audio;
import chess.controller.commands.PromoteCommand.PromoteType;
import chess.controller.event.GameAdapter;
import chess.model.Coordinate;
import chess.model.Move;
public class GameAudio extends GameAdapter {
@@ -51,7 +52,7 @@ public class GameAudio extends GameAdapter {
}
@Override
public void onPawnPromoted(PromoteType promotion) {
public void onPawnPromoted(PromoteType promotion, Coordinate coordinate) {
playSound("promote");
}