diff options
Diffstat (limited to 'src/main/java/fr/umlv/java/wallj/controller/WallDisplayController.java')
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/controller/WallDisplayController.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/controller/WallDisplayController.java b/src/main/java/fr/umlv/java/wallj/controller/WallDisplayController.java deleted file mode 100644 index b90324e..0000000 --- a/src/main/java/fr/umlv/java/wallj/controller/WallDisplayController.java +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | package fr.umlv.java.wallj.controller; | ||
2 | |||
3 | import fr.umlv.java.wallj.board.TileVec2; | ||
4 | import fr.umlv.java.wallj.context.Context; | ||
5 | import fr.umlv.java.wallj.context.GraphicsContext; | ||
6 | import fr.umlv.java.wallj.event.Event; | ||
7 | import fr.umlv.java.wallj.block.WallBlock; | ||
8 | |||
9 | import java.awt.*; | ||
10 | import java.util.Collections; | ||
11 | import java.util.List; | ||
12 | import java.util.Objects; | ||
13 | |||
14 | public class WallDisplayController extends BlockController { | ||
15 | |||
16 | private final WallBlock wall; | ||
17 | |||
18 | WallDisplayController(WallBlock wall) { | ||
19 | super(wall); | ||
20 | this.wall = Objects.requireNonNull(wall); | ||
21 | } | ||
22 | |||
23 | @Override | ||
24 | public List<Event> update(Context context) { | ||
25 | GraphicsContext graphicsContext = context.getGraphicsContext(); | ||
26 | graphicsContext.paintRectangle(Color.BLACK,wall.getPos(), TileVec2.TILE_DIM,TileVec2.TILE_DIM); | ||
27 | return Collections.emptyList(); | ||
28 | } | ||
29 | |||
30 | } | ||