PIbd-22_Shabunov_O.A._AirBo.../AirBomber/Entities/BomberEntity.cs

23 lines
703 B
C#

namespace AirBomber.Entities
{
public class BomberEntity : BomberEntityBase
{
public Color AdditionalColor { get; private set; }
public bool Bombs { get; private set; }
public bool FuelTanks { get; private set; }
public BomberEntity(int Speed, double Weight, Color BodyColor, Color AdditionalColor, bool FuelTanks, bool Bombs)
: base(Speed, Weight, BodyColor)
{
this.AdditionalColor = AdditionalColor;
this.FuelTanks = FuelTanks;
this.Bombs = Bombs;
}
public void SetAdditionalColor(Color AdditionalColor)
{
this.AdditionalColor = AdditionalColor;
}
}
}