From 0b5ef542dfc635c2e1f53b2bcf5ec0af976417c7 Mon Sep 17 00:00:00 2001 From: ericnerdo Date: Sat, 7 May 2016 14:19:56 +0200 Subject: [PATCH] FieldDrawer.java added --- cicaprojekt/FieldDrawer.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cicaprojekt/FieldDrawer.java 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(); + } + +}