|
|
@ -23,8 +23,6 @@ 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 = 20; |
|
|
|
|
|
|
|
private static final int CREATOR_HEIGHT = 9; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ECBlockCreator() { |
|
|
|
public ECBlockCreator() { |
|
|
@ -69,12 +67,12 @@ public class ECBlockCreator extends BlockCreator<PolyECBlock> { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int getX(float time) { |
|
|
|
public int getX(float time) { |
|
|
|
return Math.round ((this.getX() - CREATOR_WIDTH) * time) + CREATOR_WIDTH; |
|
|
|
return Math.round (this.getX() * time); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int getY(float time) { |
|
|
|
public int getY(float time) { |
|
|
|
return Math.round ((this.getY() - CREATOR_HEIGHT) * time) + CREATOR_HEIGHT; |
|
|
|
return Math.round (this.getY() * time); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|