EntityPlane - готов

This commit is contained in:
xom9kxom9k 2024-02-15 18:08:45 +04:00
parent adedfc6bd1
commit 52cdbd85be
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Seaplane.Enities;
/// <summary>
/// Класс - сущность "Самолет"
/// </summary>
public class EntityPlane
{
/// <summary>
/// Скорость
/// </summary>
public int Speed { get; private set; }
/// <summary>
/// Вес
/// </summary>
public double Weight { get; private set; }
/// <summary>
/// Основной цвет
/// </summary>
public Color BodyColor { get; private set; }
/// <summary>
/// Конструктор сущности
/// </summary>
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес</param>
/// <param name="bodyColor">Основной цвет</param>
public EntityPlane(int speed, double weight, Color bodyColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}

View File

@ -1,4 +1,4 @@
namespace Seaplane;
namespace Seaplane.Entities;
/// <summary>
/// Класс-сущность Гидросамолет
/// </summary>