Legger til en metode i Board for å få power down status fra en spesifikk robot

This commit is contained in:
Kristian Knarvik 2020-03-31 14:44:53 +02:00
parent ff065c6238
commit 548c7978c6

View File

@ -136,14 +136,22 @@ public class Board {
}
/**
* sets the powerdown status of the robot
* @param robotID the robotid of the robot
* @param powerdown the status of the powerdown
* Sets the power down status of the robot
* @param robotID The robot id of the robot
* @param powerdown The status of the powerdown
*/
public void setPowerDown(RobotID robotID,Boolean powerdown){
robots.get(robotID).setPowerDown(powerdown);
}
/**
* Gets the power down status of the robot
* @param robotID The robot id of the robot
*/
public void getPowerDown(RobotID robotID) {
robots.get(robotID).isInPowerDown();
}
/**
* removes one damage for a given robot given that it has taken som damage before
* @param robotID the ID of the robot