PIbd-14_Calimullin_A.R._Lab01_Hard #1

Closed
Bloody_Arthur wants to merge 5 commits from Lab1 into main
4 changed files with 1 additions and 11 deletions
Showing only changes of commit d8ef359431 - Show all commits

View File

@ -3,11 +3,9 @@ import java.util.Random;
public class DrawningAirFighter {
private EntityAirFighter entityAirFighter;
public EntityAirFighter getEntityAirFighter() {
return entityAirFighter;
}
private Integer _pictureWidth;
private Integer _pictureHeight;
private Integer _startPosX;
@ -83,8 +81,6 @@ public class DrawningAirFighter {
return true;
default:
return false;
}
}
@ -223,8 +219,6 @@ public class DrawningAirFighter {
}
drawningAirFighterEngine.drawAirFighterEngine(g, entityAirFighter.getAdditionalColor(), _startPosX, _startPosY);
}
}

View File

@ -2,7 +2,6 @@ import java.awt.*;
public class DrawningAirFighterEngine {
private EngineCount engineCount;
public void setEnumNumber(int wheelCount) {
for (EngineCount value : EngineCount.values()) {
if (value.getEnumNumber() == wheelCount) {
@ -11,11 +10,11 @@ public class DrawningAirFighterEngine {
}
}
}
public void drawAirFighterEngine(Graphics g, Color color, float startPosX, float startPosY) {
Graphics2D g2d = (Graphics2D) g;
g2d.setColor(color);
g2d.setStroke(new BasicStroke(4));
if (engineCount.getEnumNumber() == 2){
g2d.drawRect((int)startPosX + 30, (int) startPosY + 69, 10, 2 );
g2d.drawRect((int)startPosX + 30, (int) startPosY + 3, 10, 2 );

View File

@ -2,7 +2,6 @@ public enum EngineCount {
Two(2),
Three(4),
Four(6);
final private int EnumNumber;
EngineCount(int enumNumber) {
EnumNumber = enumNumber;

View File

@ -17,8 +17,6 @@ public class EntityAirFighter {
public Color getAdditionalColor() {
return AdditionalColor;
}
public double Step() {
return Speed*100/Weight;
}