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 void draw() throws IOException;
public int getX();
public int getY();
public int getTileX();
public int getTileY();
}

View File

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

View File

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

View File

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

View File

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

View File

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