added the movement of pieces in the intro state to be also done in the model

This commit is contained in:
Hanno Fleischer
2024-12-05 15:22:38 +01:00
parent 0622c35303
commit 4478291852

View File

@@ -43,6 +43,7 @@ public void enter() {
for(Map.Entry<Integer, Player> 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;