aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-04-06 22:51:52 +0200
committerPacien TRAN-GIRARD2016-04-06 22:51:52 +0200
commitf8effdde28b9d92ce28b3ef5fbd3acf0644d2191 (patch)
tree7aef0d65989ee53a9b42b23089f3c730b971fbf4 /src/ch/epfl
parent873a3084a9993f9dcf8d575563a6a018ed85dbb6 (diff)
downloadxblast-f8effdde28b9d92ce28b3ef5fbd3acf0644d2191.tar.gz
Remove player number magic value
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/xblast/server/GameState.java2
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);