From 548c7978c62efc399a737009affc3723f7461a02 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Tue, 31 Mar 2020 14:44:53 +0200 Subject: [PATCH] =?UTF-8?q?Legger=20til=20en=20metode=20i=20Board=20for=20?= =?UTF-8?q?=C3=A5=20f=C3=A5=20power=20down=20status=20fra=20en=20spesifikk?= =?UTF-8?q?=20robot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inf112/fiasko/roborally/objects/Board.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/java/inf112/fiasko/roborally/objects/Board.java b/src/main/java/inf112/fiasko/roborally/objects/Board.java index 8f69397..b5e1ff3 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/Board.java +++ b/src/main/java/inf112/fiasko/roborally/objects/Board.java @@ -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