PIbd-22_Fedorenko_G.Y._Hydr.../Hydroplane/EntityHydroplane.cs

44 lines
1.7 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.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
namespace Hydroplane.Entities
{
public class EntityHydroplane : EntityPlane
{
/// <summary>
/// Дополнительный цвет (для опциональных элементов)
/// </summary>
public Color AdditionalColor { get; private set; }
/// <summary>
/// Признак (опция) наличия надувной лодки
/// </summary>
public bool Boat { get; private set; }
/// <summary>
/// Признак (опция) наличия поплавка
/// </summary>
public bool Bobber { get; private set; }
/// <summary>
/// Инициализация полей объекта-класса гидроплана
/// </summary>
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес гидроплана</param>
/// <param name="bodyColor">Основной цвет</param>
/// <param name="additionalColor">Дополнительный цвет</param>
/// <param name="boat">Признак наличия надувной лодки</param>
/// <param name="bobber">Признак наличия поплавков</param>
public EntityHydroplane(int speed, double weight, Color bodyColor, Color
additionalColor, bool boat, bool bobber) :
base (speed, weight, bodyColor)
{
AdditionalColor = additionalColor;
Boat = boat;
Bobber = bobber;
}
}
}