From 4478291852a5a1e61904eb6cebeb6cb25c3d7cfe Mon Sep 17 00:00:00 2001 From: Hanno Fleischer Date: Thu, 5 Dec 2024 15:22:38 +0100 Subject: [PATCH] added the movement of pieces in the intro state to be also done in the model --- .../mdga/client/gamestate/determinestartplayerstate/Intro.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projekte/mdga/model/src/main/java/pp/mdga/client/gamestate/determinestartplayerstate/Intro.java b/Projekte/mdga/model/src/main/java/pp/mdga/client/gamestate/determinestartplayerstate/Intro.java index 5409e977..edbfae59 100644 --- a/Projekte/mdga/model/src/main/java/pp/mdga/client/gamestate/determinestartplayerstate/Intro.java +++ b/Projekte/mdga/model/src/main/java/pp/mdga/client/gamestate/determinestartplayerstate/Intro.java @@ -43,6 +43,7 @@ public void enter() { for(Map.Entry entry : logic.getGame().getPlayers().entrySet()){ //logic.addNotification(new WaitMoveNotification(entry.getValue().getPieces()[0].getUuid())); logic.addNotification(new MovePieceNotification(entry.getValue().getPieces()[0].getUuid(), entry.getValue().getStartNodeIndex(), true)); + logic.getGame().getBoard().getInfield()[entry.getValue().getStartNodeIndex()].setOccupant(entry.getValue().getPieces()[0]); animationCounter++; if(entry.getKey() == logic.getOwnPlayerId()){ //logic.addNotification(new AcquireCardNotification(entry.getValue().getHandCards().get(0))); @@ -65,7 +66,6 @@ public void exit() { */ @Override public void selectAnimationEnd(){ - System.out.println("selectAnimationEnd"); animationCounter--; if(animationCounter != 0){ return;