Поправочка
This commit is contained in:
parent
b179213a1f
commit
8c3119f6c3
@ -20,7 +20,7 @@ public class EntityAirCraft
|
|||||||
public Color BodyColor { get; private set; }
|
public Color BodyColor { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Шаг перемещения истребителя
|
/// Шаг перемещения самолёта
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double Step => Speed * 100 / Weight;
|
public double Step => Speed * 100 / Weight;
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ public class EntityAirCraft
|
|||||||
/// Конструктор сущности
|
/// Конструктор сущности
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="speed">Скорость</param>
|
/// <param name="speed">Скорость</param>
|
||||||
/// <param name="weight">Вес истребителя</param>
|
/// <param name="weight">Вес самолёта</param>
|
||||||
/// <param name="bodyColor">Основной цвет</param>
|
/// <param name="bodyColor">Основной цвет</param>
|
||||||
public EntityAirCraft(int speed, double weight, Color bodyColor)
|
public EntityAirCraft(int speed, double weight, Color bodyColor)
|
||||||
{
|
{
|
||||||
|
@ -2,19 +2,19 @@
|
|||||||
using ProjectAirFighter.MovementStrategy;
|
using ProjectAirFighter.MovementStrategy;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Класс-реализация IMoveableObject с использованием DrawningCar
|
/// Класс-реализация IMoveableObject с использованием DrawningAirCraft
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MoveableAirCraft : IMoveableObject
|
public class MoveableAirCraft : IMoveableObject
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Поле-объект класса DrawningCar или его наследника
|
/// Поле-объект класса DrawningAirCraft или его наследника
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly DrawningAirCraft? _airCraft = null;
|
private readonly DrawningAirCraft? _airCraft = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Конструктор
|
/// Конструктор
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="car">Объект класса DrawningCar</param>
|
/// <param name="car">Объект класса DrawningAirCraft</param>
|
||||||
public MoveableAirCraft(DrawningAirCraft airCraft)
|
public MoveableAirCraft(DrawningAirCraft airCraft)
|
||||||
{
|
{
|
||||||
_airCraft = airCraft;
|
_airCraft = airCraft;
|
||||||
|
Loading…
Reference in New Issue
Block a user