aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ch/epfl/xblast/namecheck/NameCheck02.java60
1 files changed, 0 insertions, 60 deletions
diff --git a/test/ch/epfl/xblast/namecheck/NameCheck02.java b/test/ch/epfl/xblast/namecheck/NameCheck02.java
deleted file mode 100644
index 978526e..0000000
--- a/test/ch/epfl/xblast/namecheck/NameCheck02.java
+++ /dev/null
@@ -1,60 +0,0 @@
1package ch.epfl.xblast.namecheck;
2
3import java.util.List;
4
5import ch.epfl.cs108.Sq;
6import ch.epfl.xblast.Cell;
7import ch.epfl.xblast.Lists;
8import ch.epfl.xblast.server.Block;
9import ch.epfl.xblast.server.Board;
10import ch.epfl.xblast.server.Ticks;
11
12/**
13 * Classe abstraite utilisant tous les éléments de l'étape 2, pour essayer de
14 * garantir que ceux-ci ont le bon nom et les bons types. Attention, ceci n'est
15 * pas un test unitaire, et n'a pas pour but d'être exécuté!
16 */
17
18abstract class NameCheck02 {
19 void checkTicks() {
20 int x = Ticks.PLAYER_DYING_TICKS
21 + Ticks.PLAYER_INVULNERABLE_TICKS
22 + Ticks.BOMB_FUSE_TICKS
23 + Ticks.EXPLOSION_TICKS
24 + Ticks.WALL_CRUMBLING_TICKS
25 + Ticks.BONUS_DISAPPEARING_TICKS;
26 System.out.println(x);
27 }
28
29 void checkBlock() {
30 Block b = Block.FREE;
31 b = Block.INDESTRUCTIBLE_WALL;
32 b = Block.DESTRUCTIBLE_WALL;
33 b = Block.CRUMBLING_WALL;
34 boolean d = b.isFree() && b.canHostPlayer() && b.castsShadow();
35 System.out.println(b + "/" + d);
36 }
37
38 void checkLists() {
39 List<Integer> l1 = null;
40 List<String> l2 = null;
41 List<List<String>> l3 = null;
42 List<Integer> l1m = Lists.<Integer>mirrored(l1);
43 List<String> l2m = Lists.<String>mirrored(l2);
44 List<List<String>> l3m = Lists.<List<String>>mirrored(l3);
45 System.out.println("" + l1m + l2m + l3m);
46 }
47
48 void checkBoard() {
49 List<List<Block>> q = null;
50 Board b = Board.ofQuadrantNWBlocksWalled(q);
51 b = Board.ofInnerBlocksWalled(q);
52 b = Board.ofRows(q);
53 List<Sq<Block>> cells = null;
54 b = new Board(cells);
55 Cell c = null;
56 Sq<Block> bs = b.blocksAt(c);
57 Block l = b.blockAt(c);
58 System.out.println(bs + "/" + l);
59 }
60}