Конец
This commit is contained in:
parent
f97d2694ef
commit
0e4164f751
@ -19,7 +19,7 @@ namespace DoubleDeckerBus
|
|||||||
/// <param name="secondFloor">Признак наличия второго этажа</param>
|
/// <param name="secondFloor">Признак наличия второго этажа</param>
|
||||||
/// <param name="line">Признак наличия полосы</param>
|
/// <param name="line">Признак наличия полосы</param>
|
||||||
public DrawningDoubleDeckerBus(int speed, float weight, Color bodyColor, Color dopColor, bool secondFloor, bool bodyKit, bool stair) :
|
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);
|
Bus = new EntityDoubleDeckerBus(speed, weight, bodyColor, dopColor, secondFloor, bodyKit, stair);
|
||||||
}
|
}
|
||||||
|
@ -28,15 +28,7 @@ namespace DoubleDeckerBus
|
|||||||
}
|
}
|
||||||
public void DrawningObject(Graphics g)
|
public void DrawningObject(Graphics g)
|
||||||
{
|
{
|
||||||
if (_bus == null) return;
|
_bus.DrawTransport(g);
|
||||||
if (_bus is DrawningDoubleDeckerBus doubleDeckerBus)
|
|
||||||
{
|
|
||||||
doubleDeckerBus.DrawTransport(g);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_bus.DrawTransport(g);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,8 @@ namespace DoubleDeckerBus
|
|||||||
public FormMap()
|
public FormMap()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_abstractMap = new MyMap();
|
_abstractMap = new SimpleMap();
|
||||||
|
comboBoxSelectorMap.Text = "Простая карта";
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Заполнение информации по объекту
|
/// Заполнение информации по объекту
|
||||||
|
Loading…
Reference in New Issue
Block a user