Drawers fixed from Babylonian errors (JComponent also has getX, getY).

This commit is contained in:
ericnerdo 2016-05-07 20:15:08 +02:00
parent 0d31d8c79b
commit c854a1ed37
6 changed files with 12 additions and 12 deletions

View File

@ -5,6 +5,6 @@ import java.io.IOException;
public interface Drawer { public interface Drawer {
public void draw() throws IOException; public void draw() throws IOException;
public int getX(); public int getTileX();
public int getY(); public int getTileY();
} }

View File

@ -25,12 +25,12 @@ public class FieldDrawer extends ImagePanel implements Drawer {
} }
@Override @Override
public int getX() { public int getTileX() {
return field.getX(); return field.getX();
} }
@Override @Override
public int getY() { public int getTileY() {
return field.getY(); return field.getY();
} }

View File

@ -18,12 +18,12 @@ public class GapDrawer extends ImagePanel implements Drawer{
} }
@Override @Override
public int getX() { public int getTileX() {
return gap.getX(); return gap.getX();
} }
@Override @Override
public int getY() { public int getTileY() {
return gap.getY(); return gap.getY();
} }

View File

@ -23,12 +23,12 @@ public class GateDrawer extends ImagePanel implements Drawer{
} }
@Override @Override
public int getX() { public int getTileX() {
return gate.getX(); return gate.getX();
} }
@Override @Override
public int getY() { public int getTileY() {
return gate.getY(); return gate.getY();
} }

View File

@ -23,12 +23,12 @@ public class ScaleDrawer extends ImagePanel implements Drawer {
} }
@Override @Override
public int getX() { public int getTileX() {
return scale.getX(); return scale.getX();
} }
@Override @Override
public int getY() { public int getTileY() {
return scale.getY(); return scale.getY();
} }

View File

@ -37,12 +37,12 @@ public class WallDrawer extends ImagePanel implements Drawer {
} }
@Override @Override
public int getX() { public int getTileX() {
return wall.getX(); return wall.getX();
} }
@Override @Override
public int getY() { public int getTileY() {
return wall.getY(); return wall.getY();
} }