diff --git a/src/main/java/inf112/fiasko/roborally/objects/Board.java b/src/main/java/inf112/fiasko/roborally/objects/Board.java index 95a57a3..e4e9051 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/Board.java +++ b/src/main/java/inf112/fiasko/roborally/objects/Board.java @@ -172,6 +172,16 @@ public class Board { } } } + + /** + * Get the damage of a specific robot + * @param robot The RobotID of a robot + * @return The amount of damage the robot has currently + */ + public int getRobotDamage(RobotID robot) { + return robots.get(robot).getDamageTaken(); + } + /** * Moves a robot one unit in a specified direction * @param robotID ID of the robot to move