la til en function som lar deg sett powerdown til en spill sin robot

This commit is contained in:
Tobydrama 2020-03-31 13:43:23 +02:00
parent 2430ee22a1
commit 92cf618330

View File

@ -437,4 +437,13 @@ public class RoboRallyGame implements IDrawableGame {
player.setPowerDownNextRound(false);
}
}
/**
* sets the powerdown status of a robots
* @param player the player that owns the robot
* @param powerdownStatus the powerdown status
*/
private void setRobotPowerDown(Player player,Boolean powerdownStatus){
gameBoard.setPowerDown(player.getRobotID(),powerdownStatus);
}
}