2023-09-22 21:05:01 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2023-10-08 21:06:26 +04:00
|
|
|
|
using System.Net.NetworkInformation;
|
2023-09-22 21:05:01 +04:00
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2023-10-08 21:06:26 +04:00
|
|
|
|
namespace Hydroplane.Entities
|
2023-09-22 21:05:01 +04:00
|
|
|
|
{
|
2023-10-08 21:06:26 +04:00
|
|
|
|
public class EntityHydroplane : EntityPlane
|
2023-09-22 21:05:01 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дополнительный цвет (для опциональных элементов)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Color AdditionalColor { get; private set; }
|
|
|
|
|
/// <summary>
|
2023-09-22 23:38:10 +04:00
|
|
|
|
/// Признак (опция) наличия надувной лодки
|
2023-09-22 21:05:01 +04:00
|
|
|
|
/// </summary>
|
2023-09-22 23:38:10 +04:00
|
|
|
|
public bool Boat { get; private set; }
|
2023-09-22 21:05:01 +04:00
|
|
|
|
/// <summary>
|
2023-09-22 23:38:10 +04:00
|
|
|
|
/// Признак (опция) наличия поплавка
|
2023-09-22 21:05:01 +04:00
|
|
|
|
/// </summary>
|
2023-09-22 23:38:10 +04:00
|
|
|
|
public bool Bobber { get; private set; }
|
2023-10-08 21:06:26 +04:00
|
|
|
|
|
2023-09-22 21:05:01 +04:00
|
|
|
|
/// <summary>
|
2023-09-23 12:02:28 +04:00
|
|
|
|
/// Инициализация полей объекта-класса гидроплана
|
2023-09-22 21:05:01 +04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="speed">Скорость</param>
|
2023-09-23 12:02:28 +04:00
|
|
|
|
/// <param name="weight">Вес гидроплана</param>
|
2023-09-22 21:05:01 +04:00
|
|
|
|
/// <param name="bodyColor">Основной цвет</param>
|
|
|
|
|
/// <param name="additionalColor">Дополнительный цвет</param>
|
2023-09-23 12:02:28 +04:00
|
|
|
|
/// <param name="boat">Признак наличия надувной лодки</param>
|
|
|
|
|
/// <param name="bobber">Признак наличия поплавков</param>
|
2023-10-08 21:06:26 +04:00
|
|
|
|
public EntityHydroplane(int speed, double weight, Color bodyColor, Color
|
|
|
|
|
additionalColor, bool boat, bool bobber) :
|
|
|
|
|
base (speed, weight, bodyColor)
|
2023-09-22 21:05:01 +04:00
|
|
|
|
{
|
|
|
|
|
AdditionalColor = additionalColor;
|
2023-09-22 23:38:10 +04:00
|
|
|
|
Boat = boat;
|
|
|
|
|
Bobber = bobber;
|
2023-09-22 21:05:01 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|