PIbd-21_Eliseev_E.E._Airbus.../Project/src/EntityAirbus.java

23 lines
731 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import java.awt.*;
public class EntityAirbus extends EntityPlane
{
//Дополнительный цвет
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;
}
}