diff options
author | Pacien TRAN-GIRARD | 2016-03-15 15:32:10 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-03-15 15:32:10 +0100 |
commit | 1db4b8177f0ab000291d584f5595c10af93636e6 (patch) | |
tree | 1e57945d432871d9607848625e8daf672907d9d6 /test | |
parent | 90efeec3c6ef6cbf4d56399e1cb3e7ec4144f86c (diff) | |
download | xblast-1db4b8177f0ab000291d584f5595c10af93636e6.tar.gz |
Add unit 5 method stubs and documentation
Diffstat (limited to 'test')
-rw-r--r-- | test/ch/epfl/xblast/namecheck/NameCheck05.java | 31 |
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 @@ | |||
1 | package ch.epfl.xblast.namecheck; | ||
2 | |||
3 | import ch.epfl.xblast.Cell; | ||
4 | import ch.epfl.xblast.Direction; | ||
5 | import ch.epfl.xblast.PlayerID; | ||
6 | import ch.epfl.xblast.server.Bomb; | ||
7 | import ch.epfl.xblast.server.GameState; | ||
8 | |||
9 | import java.util.Map; | ||
10 | import java.util.Optional; | ||
11 | import 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 | */ | ||
20 | abstract 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 | } | ||