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

38 lines
1.3 KiB
C#
Raw Permalink Normal View History

2024-03-07 09:46:27 +04:00
namespace ProjectCruiser.Entities
{
internal class EntityMilitaryCruiser : EntityCruiser
{
/// <summary>
/// Признак (опция) наличие вертолетной площадки
/// </summary>
public bool HelicopterArea { get; private set; }
2024-03-07 09:46:27 +04:00
/// <summary>
/// Признак (опция) наличие шлюпок
/// </summary>
public bool Boat { get; private set; }
2024-03-07 09:46:27 +04:00
/// <summary>
/// Признак (опция) наличие пушки
/// </summary>
public bool Weapon { get; private set; }
2024-03-07 09:46:27 +04:00
/// <summary>
/// Дополнительный цвет (для опциональных элементов)
/// </summary>
public Color AdditionalColor { get; private set; }
public void setAdditionalColor(Color color)
{
AdditionalColor = color;
}
2024-03-07 09:46:27 +04:00
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;
}
}
}