From bd8090a98717f497ea1df91b7d5758b533c959f2 Mon Sep 17 00:00:00 2001 From: Steinar Aalstad Lillesund Date: Tue, 14 Apr 2020 16:04:32 +0200 Subject: [PATCH] =?UTF-8?q?Fikset=20imports=20og=20lagt=20til=20funksjon?= =?UTF-8?q?=20for=20merkering=20for=20d=C3=B8de=20spillere.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inf112/fiasko/roborally/objects/Board.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/inf112/fiasko/roborally/objects/Board.java b/src/main/java/inf112/fiasko/roborally/objects/Board.java index 7f6eb46..75d85b0 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/Board.java +++ b/src/main/java/inf112/fiasko/roborally/objects/Board.java @@ -1,11 +1,11 @@ package inf112.fiasko.roborally.objects; -import inf112.fiasko.roborally.element_properties.Direction; -import inf112.fiasko.roborally.element_properties.ParticleType; -import inf112.fiasko.roborally.element_properties.Position; -import inf112.fiasko.roborally.element_properties.RobotID; -import inf112.fiasko.roborally.element_properties.TileType; -import inf112.fiasko.roborally.element_properties.WallType; +import inf112.fiasko.roborally.elementproperties.Direction; +import inf112.fiasko.roborally.elementproperties.ParticleType; +import inf112.fiasko.roborally.elementproperties.Position; +import inf112.fiasko.roborally.elementproperties.RobotID; +import inf112.fiasko.roborally.elementproperties.TileType; +import inf112.fiasko.roborally.elementproperties.WallType; import java.util.ArrayList; import java.util.HashMap; @@ -23,7 +23,7 @@ public class Board { private IGrid particles; private Map robots; private List deadRobots; - private List realDeadRobots; + private List realDeadRobots; /** * Initializes the board @@ -55,7 +55,7 @@ public class Board { * All the Real dead player's robots. * @return A list of Robots. */ - public List getRealDeadRobots() { return realDeadRobots; } + public List getRealDeadRobots() { return realDeadRobots; } /** * Gets the height of the board @@ -358,7 +358,7 @@ public class Board { robots.put(robot.getRobotId(), robot); } else { - realDeadRobots.add(robot); + realDeadRobots.add(robot.getRobotId()); } } deadRobots = new ArrayList<>();