diff options
author | Pacien TRAN-GIRARD | 2016-04-06 22:51:52 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-06 22:51:52 +0200 |
commit | f8effdde28b9d92ce28b3ef5fbd3acf0644d2191 (patch) | |
tree | 7aef0d65989ee53a9b42b23089f3c730b971fbf4 /src/ch/epfl | |
parent | 873a3084a9993f9dcf8d575563a6a018ed85dbb6 (diff) | |
download | xblast-f8effdde28b9d92ce28b3ef5fbd3acf0644d2191.tar.gz |
Remove player number magic value
Diffstat (limited to 'src/ch/epfl')
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 77e91f2..c58a911 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java | |||
@@ -290,7 +290,7 @@ public final class GameState { | |||
290 | this.ticks = ArgumentChecker.requireNonNegative(ticks); | 290 | this.ticks = ArgumentChecker.requireNonNegative(ticks); |
291 | this.board = Objects.requireNonNull(board); | 291 | this.board = Objects.requireNonNull(board); |
292 | 292 | ||
293 | if (players.size() != 4) throw new IllegalArgumentException(); | 293 | if (players.size() != PlayerID.values().length) throw new IllegalArgumentException(); |
294 | this.players = players; | 294 | this.players = players; |
295 | 295 | ||
296 | this.bombs = Objects.requireNonNull(bombs); | 296 | this.bombs = Objects.requireNonNull(bombs); |