diff --git a/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs b/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs index 743dc42..995d717 100644 --- a/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs +++ b/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs @@ -89,18 +89,6 @@ public class DrawningLocomotive _pictureHeight = drawningLocomotiveHeight; } - //public void Init(int speed, double weight, Color bodyColor, Color - //additionalColor, bool tube, bool fuelTank) - //{ - // EntityWarmlyLocomotive = new EntityWarmlyLocomotive(); - // EntityWarmlyLocomotive.Init(speed, weight, bodyColor, additionalColor, - // tube, fuelTank); - // _pictureWidth = null; - // _pictureHeight = null; - // _startPosX = null; - // _startPosY = null; - //} - /// /// Установка границ поля /// @@ -236,15 +224,6 @@ public class DrawningLocomotive return; } Pen pen = new(Color.Black); - - //Brush additionalBrush = new SolidBrush(EntityWarmlyLocomotive.AdditionalColor); - - //труба - //if (EntityWarmlyLocomotive.Tube) - //{ - // g.DrawRectangle(pen, _startPosX.Value + 40, _startPosY.Value, 20, 30); - // g.FillRectangle(additionalBrush, _startPosX.Value + 40, _startPosY.Value, 20, 40); - //} //локомотив Brush br = new SolidBrush(EntityLocomotive.BodyColor); @@ -271,12 +250,6 @@ public class DrawningLocomotive g.DrawEllipse(pen, _startPosX.Value + 120, _startPosY.Value + 50, 20, 20); g.FillEllipse(blBr, _startPosX.Value + 120, _startPosY.Value + 50, 20, 20); - // отсек для топлива - //if (EntityWarmlyLocomotive.FuelTank) - //{ - // g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value + 40, 50, 40); - // g.FillRectangle(additionalBrush, _startPosX.Value + 80, _startPosY.Value + 40, 50, 40); - //} } } \ No newline at end of file