PIbd-22_Shabunov_O.A._AirBo.../AirBomber/BomberEntity.cs
2023-11-18 22:48:03 +04:00

24 lines
817 B
C#

namespace AirBomber
{
public class BomberEntity
{
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 double Step => (double)Speed * 100 / Weight * 5 / 2;
public void Init(int Speed, double Weight, Color BodyColor, Color AdditionalColor, bool FuelTanks, bool Bombs)
{
this.Speed = Speed;
this.Weight = Weight;
this.BodyColor = BodyColor;
this.AdditionalColor = AdditionalColor;
this.FuelTanks = FuelTanks;
this.Bombs = Bombs;
}
}
}