added the movement of pieces in the intro state to be also done in the model
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user