la til updateRobotPowerDown

updateRobotPowerDown setter robotens powerdown status til playerens sin og så oppdatere den playeren sin powerdown status til false
This commit is contained in:
Tobydrama 2020-03-30 18:53:10 +02:00
parent 566346476c
commit 5f38d62ae8

View File

@ -428,4 +428,13 @@ public class RoboRallyGame implements IDrawableGame {
}
}
/**
* sets the robots powerdown status too the players powerdown next round status and sets the players status to false
*/
private void updateRobotPowerDown(){
for (Player player:playerList) {
gameBoard.setPowerDown(player.getRobotID(),player.getPowerDownNextRound());
player.setPowerDownNextRound(false);
}
}
}