Убрал одинаковый код
This commit is contained in:
commit
471fd18960
@ -1,6 +1,5 @@
|
|||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class DrawningAirFighter {
|
public class DrawningAirFighter {
|
||||||
private EntityAirFighter entityAirFighter;
|
private EntityAirFighter entityAirFighter;
|
||||||
public EntityAirFighter getEntityAirFighter() {
|
public EntityAirFighter getEntityAirFighter() {
|
||||||
|
@ -15,17 +15,17 @@ public class DrawningAirFighterEngine {
|
|||||||
g2d.setColor(color);
|
g2d.setColor(color);
|
||||||
g2d.setStroke(new BasicStroke(4));
|
g2d.setStroke(new BasicStroke(4));
|
||||||
|
|
||||||
if (_engineCount.getEnumNumber() <= 2){
|
if (_engineCount.getEnumNumber() >= 2){
|
||||||
g2d.drawRect((int)startPosX + 30, (int) startPosY + 69, 10, 2 );
|
g2d.drawRect((int)startPosX + 30, (int) startPosY + 69, 10, 2 );
|
||||||
g2d.drawRect((int)startPosX + 30, (int) startPosY + 3, 10, 2 );
|
g2d.drawRect((int)startPosX + 30, (int) startPosY + 3, 10, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_engineCount.getEnumNumber() <= 4){
|
if (_engineCount.getEnumNumber() >= 4){
|
||||||
g2d.drawRect((int)startPosX + 30, (int) startPosY + 62, 10, 2 );
|
g2d.drawRect((int)startPosX + 30, (int) startPosY + 62, 10, 2 );
|
||||||
g2d.drawRect((int)startPosX + 30, (int) startPosY + 10, 10, 2 );
|
g2d.drawRect((int)startPosX + 30, (int) startPosY + 10, 10, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_engineCount.getEnumNumber() <= 6){
|
if (_engineCount.getEnumNumber() >= 6){
|
||||||
g2d.drawRect((int)startPosX + 30, (int) startPosY + 55, 10, 2 );
|
g2d.drawRect((int)startPosX + 30, (int) startPosY + 55, 10, 2 );
|
||||||
g2d.drawRect((int)startPosX + 30, (int) startPosY + 17, 10, 2 );
|
g2d.drawRect((int)startPosX + 30, (int) startPosY + 17, 10, 2 );
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user