Drawers fixed from Babylonian errors (JComponent also has getX, getY).
This commit is contained in:
parent
0d31d8c79b
commit
c854a1ed37
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user