43 lines
1.5 KiB
C#
43 lines
1.5 KiB
C#
namespace AntiAircraftGun.Entities;
|
||
/// <summary>
|
||
/// Класс-сущность Зенитная установка
|
||
/// </summary>
|
||
public class EntityAntiAircraftGun : EntityAircraftGun
|
||
{
|
||
/// <summary>
|
||
/// Дополниетльный цвет
|
||
/// </summary>
|
||
public Color AdditionalColor { get; private set; }
|
||
/// <summary>
|
||
/// Наличие обвеса
|
||
/// </summary>
|
||
public bool BodyKit { get; private set; }
|
||
/// <summary>
|
||
/// Наличие башни
|
||
/// </summary>
|
||
public bool Tower { get; private set; }
|
||
/// <summary>
|
||
/// Наличие радара
|
||
/// </summary>
|
||
public bool Radar { get; private set; }
|
||
|
||
/// <summary>
|
||
/// Инициализация полей объекта-класса зенитной установки
|
||
/// </summary>
|
||
/// <param name="speed">Скорость</param>
|
||
/// <param name="weight">Вес</param>
|
||
/// <param name="bodyColor">Основной цвет</param>
|
||
/// <param name="additionalColor">Дополнительный цвет</param>
|
||
/// <param name="bodyKit">Наличие обвеса</param>
|
||
/// <param name="tower">Наличие башни</param>
|
||
/// <param name="radar">Наличие радара</param>
|
||
public EntityAntiAircraftGun(int speed, double weight, Color bodyColor, bool radar, bool tower, bool bodyKit, Color additionalColor) : base(speed, weight, bodyColor)
|
||
{
|
||
|
||
Radar = radar;
|
||
Tower = tower;
|
||
BodyKit = bodyKit;
|
||
AdditionalColor = additionalColor;
|
||
}
|
||
}
|