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(); + } + +}