From 6f265e72166ccc9ac546f98e2f60952c736e6dc3 Mon Sep 17 00:00:00 2001 From: just1valery Date: Thu, 29 Sep 2022 11:39:22 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D0=B8=D0=B5=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyShip/WarmlyShip/DrawningShip.cs | 13 ++++++------- WarmlyShip/WarmlyShip/EntityShip.cs | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/WarmlyShip/WarmlyShip/DrawningShip.cs b/WarmlyShip/WarmlyShip/DrawningShip.cs index 591ed2f..6763f9e 100644 --- a/WarmlyShip/WarmlyShip/DrawningShip.cs +++ b/WarmlyShip/WarmlyShip/DrawningShip.cs @@ -73,14 +73,14 @@ } switch (direction) { - // вправо + /// вправо case Direction.Right: if (_startPosX + _shipWidth + Ship.Step < _pictureWidth) { _startPosX += Ship.Step; } break; - //влево + ///влево case Direction.Left: if (_startPosX - Ship.Step > 0) @@ -88,7 +88,7 @@ _startPosX -= Ship.Step; } break; - //вверх + ///вверх case Direction.Up: if (_startPosY - Ship.Step > 0) @@ -96,7 +96,7 @@ _startPosY -= Ship.Step; } break; - //вниз + ///вниз case Direction.Down: if (_startPosY + _shipHeight + Ship.Step < _pictureHeight) { @@ -118,8 +118,7 @@ } - //заполнение коробля - + ///заполнение коробля PointF[] P = { new Point((int)(_startPosX),(int) _startPosY + 35), @@ -136,7 +135,7 @@ g.FillRectangle(brBlue, _startPosX + 50, _startPosY + 1, 100, 34); Pen pen = new(Color.Black); - //границы коробля + ///границы коробля g.DrawRectangle(pen, _startPosX + 50, _startPosY + 1 , 100, 34); g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 170, _startPosY + 35); g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 50, _startPosY + 65); diff --git a/WarmlyShip/WarmlyShip/EntityShip.cs b/WarmlyShip/WarmlyShip/EntityShip.cs index 8d865cf..6ea770d 100644 --- a/WarmlyShip/WarmlyShip/EntityShip.cs +++ b/WarmlyShip/WarmlyShip/EntityShip.cs @@ -17,15 +17,15 @@ namespace WarmlyShip /// public float Weight { get; private set; } /// - /// Цвет кузова + /// Цвет коробля /// public Color BodyColor { get; private set; } /// - /// Шаг перемещения автомобиля + /// Шаг перемещения коробля /// public float Step => Speed * 100 / Weight; /// - /// Инициализация полей объекта-класса автомобиля + /// Инициализация полей объекта-класса коробля /// /// ///