|
|
@ -23,8 +23,8 @@ import com.fr.stable.unit.UnitRectangle; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class ECBlockCreator extends BlockCreator<PolyECBlock> { |
|
|
|
public class ECBlockCreator extends BlockCreator<PolyECBlock> { |
|
|
|
private ECBlockEditor editor; |
|
|
|
private ECBlockEditor editor; |
|
|
|
private static final int CREATOR_WIDTH = 30; |
|
|
|
private static final int CREATOR_WIDTH = 20; |
|
|
|
private static final int CREATOR_HEIGHT = 19; |
|
|
|
private static final int CREATOR_HEIGHT = 9; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ECBlockCreator() { |
|
|
|
public ECBlockCreator() { |
|
|
@ -69,12 +69,12 @@ public class ECBlockCreator extends BlockCreator<PolyECBlock> { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int getX(float time) { |
|
|
|
public int getX(float time) { |
|
|
|
return (int) ((this.getX() - CREATOR_WIDTH) * time) + CREATOR_WIDTH; |
|
|
|
return Math.round ((this.getX() - CREATOR_WIDTH) * time) + CREATOR_WIDTH; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int getY(float time) { |
|
|
|
public int getY(float time) { |
|
|
|
return (int) ((this.getY() - CREATOR_HEIGHT) * time) + CREATOR_HEIGHT; |
|
|
|
return Math.round ((this.getY() - CREATOR_HEIGHT) * time) + CREATOR_HEIGHT; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|