EntityPlane - готов
This commit is contained in:
parent
adedfc6bd1
commit
52cdbd85be
39
Seaplane/Entities/EntityPlane.cs
Normal file
39
Seaplane/Entities/EntityPlane.cs
Normal 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;
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
namespace Seaplane;
|
||||
namespace Seaplane.Entities;
|
||||
/// <summary>
|
||||
/// Класс-сущность Гидросамолет
|
||||
/// </summary>
|
Loading…
Reference in New Issue
Block a user