diff --git a/cicaprojekt/FieldDrawer.java b/cicaprojekt/FieldDrawer.java new file mode 100644 index 0000000..0d1fc7b --- /dev/null +++ b/cicaprojekt/FieldDrawer.java @@ -0,0 +1,28 @@ +package cicaprojekt; + +public class FieldDrawer extends ImagePanel implements Drawer { + + Field field; + + public FieldDrawer(Field f) { + super("Field.png"); + field = f; + setVisible(false); + } + + @Override + public void draw() { + setVisible(true); + } + + @Override + public int getX() { + return field.getX(); + } + + @Override + public int getY() { + return field.getY(); + } + +}