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

40 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Catamaran
{
internal class EntityCatamaran : EntityBoat
{
public Color DopColor { get; private set; }
/// <summary>
/// Признак наличия поплавков
/// </summary>
public bool Floats { get; private set; }
/// <summary>
/// Признак наличия паруса
/// </summary>
public bool Sail { get; private set; }
/// <summary>
/// Инициализация свойств
/// </summary>
/// /// <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)
{
DopColor = dopColor;
this.Floats = Floats;
this.Sail = Sail;
}
}
}