ISEbd-12_Sinelnikova_A.V._S.../ProjectCruiser/Entities/EntityMilitaryCruiser.cs

38 lines
1.3 KiB
C#

namespace ProjectCruiser.Entities
{
internal class EntityMilitaryCruiser : EntityCruiser
{
/// <summary>
/// Признак (опция) наличие вертолетной площадки
/// </summary>
public bool HelicopterArea { get; private set; }
/// <summary>
/// Признак (опция) наличие шлюпок
/// </summary>
public bool Boat { get; private set; }
/// <summary>
/// Признак (опция) наличие пушки
/// </summary>
public bool Weapon { get; private set; }
/// <summary>
/// Дополнительный цвет (для опциональных элементов)
/// </summary>
public Color AdditionalColor { get; private set; }
public void setAdditionalColor(Color color)
{
AdditionalColor = color;
}
public EntityMilitaryCruiser(int speed, double weight, Color bodyColor, Color additionalColor, bool helicopterArea, bool boat, bool weapon) : base(speed, weight, bodyColor)
{
AdditionalColor = additionalColor;
HelicopterArea = helicopterArea;
Boat = boat;
Weapon = weapon;
}
}
}