Compare commits
4 Commits
00492b0693
...
1b49c94f50
Author | SHA1 | Date | |
---|---|---|---|
1b49c94f50 | |||
d3687dc750 | |||
6b13374b77 | |||
0cd856801f |
@ -21,6 +21,10 @@ 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)
|
||||
|
@ -35,12 +35,12 @@ namespace ProjectAirplaneWithRadar.Drawnings
|
||||
/// <summary>
|
||||
/// Ширина прорисовки самолета
|
||||
/// </summary>
|
||||
public readonly int PlaneWidth = 150;
|
||||
private readonly int PlaneWidth = 150;
|
||||
|
||||
/// <summary>
|
||||
/// Высота прорисовки самолета
|
||||
/// </summary>
|
||||
public readonly int PlaneHeight = 85;
|
||||
private readonly int PlaneHeight = 85;
|
||||
|
||||
/// <summary>
|
||||
/// Координата X объекта
|
||||
|
@ -20,11 +20,6 @@
|
||||
/// </summary>
|
||||
public bool Radar { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Шаг перемещения автомобиля
|
||||
/// </summary>
|
||||
public double Step => Speed * 100 / Weight;
|
||||
|
||||
/// <summary>
|
||||
/// Инициализация полей объекта-класса самолета с радаром
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user