aboutsummaryrefslogtreecommitdiff
path: root/test/ch/epfl
diff options
context:
space:
mode:
authorTimothée Floure2016-03-24 10:42:56 +0100
committerTimothée Floure2016-03-24 10:42:56 +0100
commitc894d8b455f259e341f79de00e20ab3e3170c211 (patch)
treef8a844380ee7b56bf7690dfe2c37a0b977a71713 /test/ch/epfl
parent90efeec3c6ef6cbf4d56399e1cb3e7ec4144f86c (diff)
parent3c9bb6d8366673a1d88e36bcb575be5a06448f73 (diff)
downloadxblast-c894d8b455f259e341f79de00e20ab3e3170c211.tar.gz
Merge branch '05_gamestate_evolution' into 'master' 05_gamestate_evolution
05 gamestate evolution See merge request !5
Diffstat (limited to 'test/ch/epfl')
-rw-r--r--test/ch/epfl/xblast/namecheck/NameCheck05.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/ch/epfl/xblast/namecheck/NameCheck05.java b/test/ch/epfl/xblast/namecheck/NameCheck05.java
new file mode 100644
index 0000000..e8c30f0
--- /dev/null
+++ b/test/ch/epfl/xblast/namecheck/NameCheck05.java
@@ -0,0 +1,31 @@
1package ch.epfl.xblast.namecheck;
2
3import ch.epfl.xblast.Cell;
4import ch.epfl.xblast.Direction;
5import ch.epfl.xblast.PlayerID;
6import ch.epfl.xblast.server.Bomb;
7import ch.epfl.xblast.server.GameState;
8
9import java.util.Map;
10import java.util.Optional;
11import java.util.Set;
12
13/**
14 * Classe abstraite utilisant tous les éléments de l'étape 5, pour essayer de
15 * garantir que ceux-ci ont le bon nom et les bons types. Attention, ceci n'est
16 * pas un test unitaire, et n'a pas pour but d'être exécuté!
17 *
18 * @author EPFL
19 */
20abstract class NameCheck05 {
21
22 void checkGameState(GameState s,
23 Map<PlayerID, Optional<Direction>> speedChangeEvents,
24 Set<PlayerID> bombDropEvents) {
25 Map<Cell, Bomb> b = s.bombedCells();
26 Set<Cell> l = s.blastedCells();
27 s = s.next(speedChangeEvents, bombDropEvents);
28 System.out.println("b:" + b + ", l: " + l);
29 }
30
31}