1
0
mirror of https://github.com/inf112-v20/Fiasko.git synced 2025-03-05 09:39:47 +01:00

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

@ -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);
}
}
} }