diff --git a/src/main/java/inf112/fiasko/roborally/objects/Board.java b/src/main/java/inf112/fiasko/roborally/objects/Board.java index e4e9051..7f6eb46 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/Board.java +++ b/src/main/java/inf112/fiasko/roborally/objects/Board.java @@ -23,6 +23,7 @@ public class Board { private IGrid particles; private Map robots; private List deadRobots; + private List realDeadRobots; /** * Initializes the board @@ -47,8 +48,15 @@ public class Board { this.tiles = tiles; this.particles = new Grid<>(tiles.getWidth(), tiles.getHeight()); this.deadRobots = new ArrayList<>(); + this.realDeadRobots = new ArrayList<>(); } + /** + * All the Real dead player's robots. + * @return A list of Robots. + */ + public List getRealDeadRobots() { return realDeadRobots; } + /** * Gets the height of the board * @return The height of the board @@ -349,6 +357,9 @@ public class Board { robot.setDamageTaken(2); robots.put(robot.getRobotId(), robot); } + else { + realDeadRobots.add(robot); + } } deadRobots = new ArrayList<>(); }