From 17d7f46d78e58c4ecfdf6838927bbb2d6c7fdd4c Mon Sep 17 00:00:00 2001 From: ericnerdo Date: Sat, 7 May 2016 14:29:36 +0200 Subject: [PATCH] WallDrawer.java added --- cicaprojekt/WallDrawer.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cicaprojekt/WallDrawer.java diff --git a/cicaprojekt/WallDrawer.java b/cicaprojekt/WallDrawer.java new file mode 100644 index 0000000..ef16c78 --- /dev/null +++ b/cicaprojekt/WallDrawer.java @@ -0,0 +1,29 @@ +package cicaprojekt; + +public class WallDrawer extends ImagePanel implements Drawer { + + Wall wall; + + public WallDrawer(Wall w) { + super("Wall.png"); + wall = w; + setVisible(false); + } + + @Override + public void draw() { + setVisible(true); + + } + + @Override + public int getX() { + return wall.getX(); + } + + @Override + public int getY() { + return wall.getY(); + } + +}