diff --git a/cicaprojekt/Drawer.java b/cicaprojekt/Drawer.java index 1c6ca3b..950e989 100644 --- a/cicaprojekt/Drawer.java +++ b/cicaprojekt/Drawer.java @@ -5,6 +5,6 @@ import java.io.IOException; public interface Drawer { public void draw() throws IOException; - public int getX(); - public int getY(); + public int getTileX(); + public int getTileY(); } diff --git a/cicaprojekt/FieldDrawer.java b/cicaprojekt/FieldDrawer.java index 7d86b68..c00b26e 100644 --- a/cicaprojekt/FieldDrawer.java +++ b/cicaprojekt/FieldDrawer.java @@ -25,12 +25,12 @@ public class FieldDrawer extends ImagePanel implements Drawer { } @Override - public int getX() { + public int getTileX() { return field.getX(); } @Override - public int getY() { + public int getTileY() { return field.getY(); } diff --git a/cicaprojekt/GapDrawer.java b/cicaprojekt/GapDrawer.java index b5248a5..9676fd0 100644 --- a/cicaprojekt/GapDrawer.java +++ b/cicaprojekt/GapDrawer.java @@ -18,12 +18,12 @@ public class GapDrawer extends ImagePanel implements Drawer{ } @Override - public int getX() { + public int getTileX() { return gap.getX(); } @Override - public int getY() { + public int getTileY() { return gap.getY(); } diff --git a/cicaprojekt/GateDrawer.java b/cicaprojekt/GateDrawer.java index a841e26..cb45d0e 100644 --- a/cicaprojekt/GateDrawer.java +++ b/cicaprojekt/GateDrawer.java @@ -23,12 +23,12 @@ public class GateDrawer extends ImagePanel implements Drawer{ } @Override - public int getX() { + public int getTileX() { return gate.getX(); } @Override - public int getY() { + public int getTileY() { return gate.getY(); } diff --git a/cicaprojekt/ScaleDrawer.java b/cicaprojekt/ScaleDrawer.java index d0d5244..a11edf1 100644 --- a/cicaprojekt/ScaleDrawer.java +++ b/cicaprojekt/ScaleDrawer.java @@ -23,12 +23,12 @@ public class ScaleDrawer extends ImagePanel implements Drawer { } @Override - public int getX() { + public int getTileX() { return scale.getX(); } @Override - public int getY() { + public int getTileY() { return scale.getY(); } diff --git a/cicaprojekt/WallDrawer.java b/cicaprojekt/WallDrawer.java index 4e8ad7a..4eeeeb0 100644 --- a/cicaprojekt/WallDrawer.java +++ b/cicaprojekt/WallDrawer.java @@ -37,12 +37,12 @@ public class WallDrawer extends ImagePanel implements Drawer { } @Override - public int getX() { + public int getTileX() { return wall.getX(); } @Override - public int getY() { + public int getTileY() { return wall.getY(); }