fixed Notification bug

This commit is contained in:
Cedric Beck
2024-12-08 10:33:56 +01:00
parent 16e7488fae
commit 69108063a0

View File

@@ -60,8 +60,6 @@ public void update() {
throw new RuntimeException("no notification expected: " + n.getClass().getName());
}
}
n = app.getGameLogic().getNotification();
}
}
@@ -191,7 +189,7 @@ private void handleGame(Notification notification) {
app.afterGameCleanup();
app.enter(MdgaState.MAIN);
} else if (notification instanceof SwapPieceNotification n) {
// boardHandler.swapPieces(n.getFirstPiece(), n.getSecondPiece());
boardHandler.swapPieceAnim(n.getFirstPiece(), n.getSecondPiece());
guiHandler.swap();
} else if (notification instanceof WaitMoveNotification) {
//TODO ???