aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr/umlv/java/wallj/controller/WallDisplayController.java
diff options
context:
space:
mode:
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.java30
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 @@
1package fr.umlv.java.wallj.controller;
2
3import fr.umlv.java.wallj.board.TileVec2;
4import fr.umlv.java.wallj.context.Context;
5import fr.umlv.java.wallj.context.GraphicsContext;
6import fr.umlv.java.wallj.event.Event;
7import fr.umlv.java.wallj.block.WallBlock;
8
9import java.awt.*;
10import java.util.Collections;
11import java.util.List;
12import java.util.Objects;
13
14public 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}