diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/block/RobotBlock.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java b/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java index 4d7745b..f81f423 100644 --- a/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java +++ b/src/main/java/fr/umlv/java/wallj/block/RobotBlock.java | |||
@@ -93,6 +93,9 @@ public class RobotBlock extends Block { | |||
93 | graphicsContext.paintCircle(Color.BLUE, getPos(), TileVec2.TILE_DIM / 2); | 93 | graphicsContext.paintCircle(Color.BLUE, getPos(), TileVec2.TILE_DIM / 2); |
94 | } | 94 | } |
95 | 95 | ||
96 | /** | ||
97 | * @implNote TODO: profile this and consider a mapping (pos: block) for faster lookup in Stage | ||
98 | */ | ||
96 | private boolean isOnBomb(Stage stage) { | 99 | private boolean isOnBomb(Stage stage) { |
97 | return stage.getBlocks().stream() | 100 | return stage.getBlocks().stream() |
98 | .anyMatch(block -> Objects.equals(block.getType(), BlockType.BOMB) && | 101 | .anyMatch(block -> Objects.equals(block.getType(), BlockType.BOMB) && |