Compare commits

..

4 Commits

3 changed files with 6 additions and 7 deletions

View File

@ -21,6 +21,10 @@ namespace ProjectAirplaneWithRadar.Drawnings
EntityAirplane = new EntityAirplaneWithRadar(speed, weight, bodyColor, additionalColor, wheels, radar); EntityAirplane = new EntityAirplaneWithRadar(speed, weight, bodyColor, additionalColor, wheels, radar);
} }
/// <summary>
/// Прорисовка объекта
/// </summary>
/// <param name="g"></param>
public override void DrawTransport(Graphics g) public override void DrawTransport(Graphics g)
{ {
if (EntityAirplane == null || EntityAirplane is not EntityAirplaneWithRadar airplaneWithRadar || !_startPosX.HasValue || !_startPosY.HasValue) if (EntityAirplane == null || EntityAirplane is not EntityAirplaneWithRadar airplaneWithRadar || !_startPosX.HasValue || !_startPosY.HasValue)

View File

@ -35,12 +35,12 @@ namespace ProjectAirplaneWithRadar.Drawnings
/// <summary> /// <summary>
/// Ширина прорисовки самолета /// Ширина прорисовки самолета
/// </summary> /// </summary>
public readonly int PlaneWidth = 150; private readonly int PlaneWidth = 150;
/// <summary> /// <summary>
/// Высота прорисовки самолета /// Высота прорисовки самолета
/// </summary> /// </summary>
public readonly int PlaneHeight = 85; private readonly int PlaneHeight = 85;
/// <summary> /// <summary>
/// Координата X объекта /// Координата X объекта

View File

@ -20,11 +20,6 @@
/// </summary> /// </summary>
public bool Radar { get; private set; } public bool Radar { get; private set; }
/// <summary>
/// Шаг перемещения автомобиля
/// </summary>
public double Step => Speed * 100 / Weight;
/// <summary> /// <summary>
/// Инициализация полей объекта-класса самолета с радаром /// Инициализация полей объекта-класса самолета с радаром
/// </summary> /// </summary>