fixed Notification bug
This commit is contained in:
@@ -60,8 +60,6 @@ public void update() {
|
|||||||
throw new RuntimeException("no notification expected: " + n.getClass().getName());
|
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.afterGameCleanup();
|
||||||
app.enter(MdgaState.MAIN);
|
app.enter(MdgaState.MAIN);
|
||||||
} else if (notification instanceof SwapPieceNotification n) {
|
} else if (notification instanceof SwapPieceNotification n) {
|
||||||
// boardHandler.swapPieces(n.getFirstPiece(), n.getSecondPiece());
|
boardHandler.swapPieceAnim(n.getFirstPiece(), n.getSecondPiece());
|
||||||
guiHandler.swap();
|
guiHandler.swap();
|
||||||
} else if (notification instanceof WaitMoveNotification) {
|
} else if (notification instanceof WaitMoveNotification) {
|
||||||
//TODO ???
|
//TODO ???
|
||||||
|
|||||||
Reference in New Issue
Block a user