Done
This commit is contained in:
parent
fad7731fa2
commit
8d447ae26d
@ -39,7 +39,7 @@ public class DrawningAirFighter {
|
||||
DrawningEngines = new DrawningEngines();
|
||||
DrawningEngines.Init(_startPosX,_startPosY,airfighterPanel);
|
||||
Random rand = new Random();
|
||||
DrawningEngines.ChangeEnginesNumb(rand.nextInt(1, 4));
|
||||
DrawningEngines.ChangeEnginesNumb(engineNumb);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -80,7 +80,6 @@ public class DrawningAirFighter {
|
||||
case Down:
|
||||
if (_startPosY + EntityAirFighter.Step() + _airfighterwingkorpusHeight < _pictureHeight)
|
||||
_startPosY += (int) EntityAirFighter.Step();
|
||||
|
||||
break;
|
||||
}
|
||||
DrawningEngines.CurX = _startPosX;
|
||||
@ -91,17 +90,12 @@ public class DrawningAirFighter {
|
||||
Graphics2D g2d = (Graphics2D) AirFighterPanel.getGraphics();
|
||||
if (EntityAirFighter == null)
|
||||
return;
|
||||
|
||||
DrawningEngines.DrawEngines();
|
||||
//тело самолёта
|
||||
|
||||
|
||||
|
||||
g2d.setColor(EntityAirFighter.BodyColor());
|
||||
g2d.fillRect(_startPosX + 20,_startPosY +4,140,20);
|
||||
g2d.setColor(Color.BLACK);
|
||||
g2d.drawRect(_startPosX + 20,_startPosY +4,140,20);
|
||||
|
||||
//Нос самолёта
|
||||
int[] xPointsArrNose = {_startPosX + 20,_startPosX + 20,_startPosX-3};
|
||||
int[] yPointsArrNose = {_startPosY + 4,_startPosY + 24,_startPosY + 12};
|
||||
|
@ -11,7 +11,6 @@ public class EntityAirFighter {
|
||||
public int Speed(){
|
||||
return Speed;
|
||||
}
|
||||
|
||||
public int WheelNumb(){
|
||||
return EngineNumb;
|
||||
}
|
||||
@ -32,7 +31,6 @@ public class EntityAirFighter {
|
||||
Weight = weight;
|
||||
Step = (double)Speed * 100 / Weight;
|
||||
BodyColor = bodyColor;
|
||||
|
||||
EngineNumb = engineNumb;
|
||||
Racket = racket;
|
||||
Wing = wing;
|
||||
|
Loading…
Reference in New Issue
Block a user