diff options
author | Pacien TRAN-GIRARD | 2016-04-07 22:27:18 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-07 22:27:18 +0200 |
commit | 3dd23622d97b9fdd75c22554250a793a95b08a55 (patch) | |
tree | 17e9c9f022ab0e26df242749de5efbce25eeb9b8 /src/ch/epfl | |
parent | 3f322fd077aae6323ac162d5b6af5b1cfeda7d67 (diff) | |
download | xblast-3dd23622d97b9fdd75c22554250a793a95b08a55.tar.gz |
Make indestructible walls great again
Diffstat (limited to 'src/ch/epfl')
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 31bb902..c51afe7 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java | |||
@@ -104,11 +104,12 @@ public final class GameState { | |||
104 | return Stream.concat( | 104 | return Stream.concat( |
105 | blasts0.stream() | 105 | blasts0.stream() |
106 | .filter(blastSeq -> !blastSeq.tail().isEmpty()) | 106 | .filter(blastSeq -> !blastSeq.tail().isEmpty()) |
107 | .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) | ||
108 | .map(Sq::tail), | 107 | .map(Sq::tail), |
109 | explosions0.stream() | 108 | explosions0.stream() |
110 | .map(Sq::head) | 109 | .map(Sq::head) |
111 | ).collect(Collectors.toList()); | 110 | ) |
111 | .filter(blastSeq -> board0.blockAt(blastSeq.head()).isFree()) | ||
112 | .collect(Collectors.toList()); | ||
112 | } | 113 | } |
113 | 114 | ||
114 | /** | 115 | /** |