From 1db4b8177f0ab000291d584f5595c10af93636e6 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 15 Mar 2016 15:32:10 +0100 Subject: Add unit 5 method stubs and documentation --- test/ch/epfl/xblast/namecheck/NameCheck05.java | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/ch/epfl/xblast/namecheck/NameCheck05.java (limited to 'test') 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 @@ +package ch.epfl.xblast.namecheck; + +import ch.epfl.xblast.Cell; +import ch.epfl.xblast.Direction; +import ch.epfl.xblast.PlayerID; +import ch.epfl.xblast.server.Bomb; +import ch.epfl.xblast.server.GameState; + +import java.util.Map; +import java.util.Optional; +import java.util.Set; + +/** + * Classe abstraite utilisant tous les éléments de l'étape 5, pour essayer de + * garantir que ceux-ci ont le bon nom et les bons types. Attention, ceci n'est + * pas un test unitaire, et n'a pas pour but d'être exécuté! + * + * @author EPFL + */ +abstract class NameCheck05 { + + void checkGameState(GameState s, + Map> speedChangeEvents, + Set bombDropEvents) { + Map b = s.bombedCells(); + Set l = s.blastedCells(); + s = s.next(speedChangeEvents, bombDropEvents); + System.out.println("b:" + b + ", l: " + l); + } + +} -- cgit v1.2.3