Compare commits

..

No commits in common. "1b49c94f50a0374dd25903d272282ce4eb9c71b7" and "00492b0693203da9e71beaa01ca4c1cb7a574842" have entirely different histories.

3 changed files with 7 additions and 6 deletions

View File

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

View File

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

View File

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