ISEbd-22 Alimova M.S. Lab Work 02 Hard #2

Closed
malimova wants to merge 9 commits from Lab2 into Lab1
Showing only changes of commit 127a35dea6 - Show all commits

View File

@ -6,21 +6,14 @@ using System.Threading.Tasks;
namespace AirBomber
{
public class EntityAirBomber
public class EntityAirBomber : EntityAirPlane
{
public int Speed { get; private set; }
public double Weight { get; private set; }
public Color BodyColor { get; private set; }
public Color AdditionalColor { get; private set; }
public bool Bombs { get; private set; }
public bool FuelTanks { get; private set; }
public int Engines { get; private set; }
public double Step => (double)Speed * 100 / Weight;
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool bombs, bool fuelTanks, int engines)
public EntityAirBomber(int speed, double weight, Color bodyColor, Color additionalColor, bool bombs, bool fuelTanks, int engines) : base(speed, weight, bodyColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
Bombs = bombs;
FuelTanks = fuelTanks;