lagde tester for roboter på repair tiles og for å sette roboter i powerdown og for å execute powerdown

This commit is contained in:
Tobydrama
2020-03-31 13:15:31 +02:00
parent b5be1ac787
commit 2430ee22a1
2 changed files with 40 additions and 14 deletions

View File

@ -150,7 +150,7 @@ public class Board {
*/
public void repairRobotOnTile(RobotID robotID){
Robot robot = robots.get(robotID);
int newDamage =Math.max(robot.getDamageTaken()-1,0);
int newDamage = Math.max(robot.getDamageTaken()-1,0);
robot.setDamageTaken(newDamage);
}