mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-01 07:39:35 +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:
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user