diff options
author | pacien | 2018-02-03 22:46:20 +0100 |
---|---|---|
committer | pacien | 2018-02-03 22:46:20 +0100 |
commit | 745b3c798de97785dd92e1a3db83cfdb2801ee87 (patch) | |
tree | 9c901770f8d2be25a4259646d9e04043a4bc46ce | |
parent | 30f734d6b8602410e7d57d2f9f9bd4814df9fefe (diff) | |
download | wallj-745b3c798de97785dd92e1a3db83cfdb2801ee87.tar.gz |
Add note
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-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) && |