mirror of
				https://github.com/inf112-v20/Fiasko.git
				synced 2025-11-04 11:43:44 +01:00 
			
		
		
		
	added a upadte robot spawn that updates the robot spawn location
This commit is contained in:
		@@ -62,6 +62,11 @@ public class Phase {
 | 
			
		||||
 | 
			
		||||
        fireAllLasers();
 | 
			
		||||
        checkAllFlags();
 | 
			
		||||
        updateRobotRespawn();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void updateRobotRespawn(){
 | 
			
		||||
        gameBoard.updateRobotRespawn();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
@@ -109,7 +114,7 @@ public class Phase {
 | 
			
		||||
            if (gameBoard.hasTouchedFlagThisTurn(robotID)) {
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
            gameBoard.updateRobotFlag(robotID, flag.getElement().getType());
 | 
			
		||||
            gameBoard.updateRobotFlag(robotID, flag);
 | 
			
		||||
            checkIfPlayerWon(robotID, flags.size());
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user