added animation end in playCardNotification
This commit is contained in:
@@ -174,11 +174,11 @@ private void handleGame(Notification notification) {
|
||||
} else if (notification instanceof PlayCardNotification n) {
|
||||
if(n.getCard() == BonusCard.TURBO) {
|
||||
guiHandler.turbo();
|
||||
app.getModelSynchronize().animationEnd();
|
||||
}
|
||||
|
||||
if(n.getColor() == ownColor) guiHandler.playCardOwn(n.getCard());
|
||||
else guiHandler.playCardEnemy(n.getColor(), n.getCard());
|
||||
|
||||
app.getModelSynchronize().animationEnd();
|
||||
} else if (notification instanceof PlayerInGameNotification n) {
|
||||
boardHandler.addPlayer(n.getColor(),n.getPiecesList());
|
||||
guiHandler.addPlayer(n.getColor(),n.getName());
|
||||
|
||||
Reference in New Issue
Block a user