Pibd-22_Presnyakova.V.V_Cat.../Catamaran/EntityCatamaran.cs

40 lines
1.4 KiB
C#
Raw Normal View History

2022-09-25 11:25:29 +04:00
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Catamaran
{
2022-10-01 20:41:57 +04:00
internal class EntityCatamaran : EntityBoat
2022-09-25 11:25:29 +04:00
{
2022-10-01 20:41:57 +04:00
public Color DopColor { get; private set; }
2022-09-25 11:25:29 +04:00
/// <summary>
2022-10-01 20:41:57 +04:00
/// Признак наличия поплавков
2022-09-25 11:25:29 +04:00
/// </summary>
2022-10-01 20:41:57 +04:00
public bool Floats { get; private set; }
2022-09-25 11:25:29 +04:00
/// <summary>
2022-10-01 20:41:57 +04:00
/// Признак наличия паруса
2022-09-25 11:25:29 +04:00
/// </summary>
2022-10-01 20:41:57 +04:00
public bool Sail { get; private set; }
2022-09-25 11:25:29 +04:00
/// <summary>
2022-10-01 20:41:57 +04:00
/// Инициализация свойств
2022-09-25 11:25:29 +04:00
/// </summary>
2022-10-01 20:41:57 +04:00
/// /// <param name="speed">Скорость</param>
/// <param name="weight">Вес лодки</param>
/// <param name="bodyColor">Цвет</param>
/// <param name="dopColor">Дополнительный цвет</param>
/// <param name="Floats">Признак наличия поплавков</param>
/// <param name="Sail">Признак наличия паруса</param>
public EntityCatamaran(int speed, float weight, Color bodyColor, Color
dopColor, bool Floats, bool Sail) :
base(speed, weight, bodyColor)
2022-09-25 11:25:29 +04:00
{
2022-10-01 20:41:57 +04:00
DopColor = dopColor;
this.Floats = Floats;
this.Sail = Sail;
2022-09-25 11:25:29 +04:00
}
}
}