2022-11-03 23:34:20 +04:00
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
2022-11-05 13:06:59 +04:00
|
|
|
|
public class EntityAirbus extends EntityPlane
|
|
|
|
|
{
|
2022-11-03 23:34:20 +04:00
|
|
|
|
//Дополнительный цвет
|
|
|
|
|
public Color AddColor;
|
|
|
|
|
|
|
|
|
|
//Признак наличия дополнительно пассажирского отсека
|
|
|
|
|
public boolean AddСompartment;
|
|
|
|
|
|
|
|
|
|
//Признак наличия дополнительных двигателей
|
|
|
|
|
public boolean AddEngine;
|
|
|
|
|
|
|
|
|
|
//Инициализация свойств
|
|
|
|
|
public EntityAirbus(int speed, float weight, Color corpusColor, Color addColor, boolean addCompartment, boolean addEngine)
|
|
|
|
|
{
|
|
|
|
|
super(speed, weight, corpusColor);
|
|
|
|
|
AddColor = addColor;
|
|
|
|
|
AddСompartment = addCompartment;
|
|
|
|
|
AddEngine = addEngine;
|
|
|
|
|
}
|
|
|
|
|
}
|