40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
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;
|
||
}
|
||
}
|
||
}
|