Конец

This commit is contained in:
Марат Заргаров 2022-11-16 09:56:42 +04:00
parent f97d2694ef
commit 0e4164f751
3 changed files with 4 additions and 11 deletions

View File

@ -19,7 +19,7 @@ namespace DoubleDeckerBus
/// <param name="secondFloor">Признак наличия второго этажа</param>
/// <param name="line">Признак наличия полосы</param>
public DrawningDoubleDeckerBus(int speed, float weight, Color bodyColor, Color dopColor, bool secondFloor, bool bodyKit, bool stair) :
base(speed, weight, bodyColor, 115, 100)
base(speed, weight, bodyColor, 120, 92)
{
Bus = new EntityDoubleDeckerBus(speed, weight, bodyColor, dopColor, secondFloor, bodyKit, stair);
}

View File

@ -27,17 +27,9 @@ namespace DoubleDeckerBus
_bus.SetPosition(x, y, width, height);
}
public void DrawningObject(Graphics g)
{
if (_bus == null) return;
if (_bus is DrawningDoubleDeckerBus doubleDeckerBus)
{
doubleDeckerBus.DrawTransport(g);
}
else
{
_bus.DrawTransport(g);
}
}
}
}

View File

@ -16,7 +16,8 @@ namespace DoubleDeckerBus
public FormMap()
{
InitializeComponent();
_abstractMap = new MyMap();
_abstractMap = new SimpleMap();
comboBoxSelectorMap.Text = "Простая карта";
}
/// <summary>
/// Заполнение информации по объекту