diff --git a/ProjectMotorBoat/ProjectMotorBoat/DrawingMotorBoat.cs b/ProjectMotorBoat/ProjectMotorBoat/DrawingMotorBoat.cs index b379b19..7e04a88 100644 --- a/ProjectMotorBoat/ProjectMotorBoat/DrawingMotorBoat.cs +++ b/ProjectMotorBoat/ProjectMotorBoat/DrawingMotorBoat.cs @@ -9,7 +9,7 @@ namespace ProjectMotorBoat; public class DrawingMotorBoat { /// - /// Класс-сущность + /// Класс-сущность "Катер" /// public EntityMotorBoat? EntityMotorBoat { get; private set; } @@ -52,12 +52,12 @@ public class DrawingMotorBoat /// /// /// - /// + /// /// - public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool inboardEngine, bool paddle, bool protectiveGlass) + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool inboardEngine, bool oar, bool protectiveGlass) { EntityMotorBoat = new EntityMotorBoat(); - EntityMotorBoat.Init(speed, weight, bodyColor, additionalColor, inboardEngine, paddle, protectiveGlass); + EntityMotorBoat.Init(speed, weight, bodyColor, additionalColor, inboardEngine, oar, protectiveGlass); _pictureWidth = null; _pictureHeight = null; _startPosX = null; @@ -245,7 +245,7 @@ public class DrawingMotorBoat } // Вёсла - if (EntityMotorBoat.Paddle) + if (EntityMotorBoat.Oar) { g.DrawRectangle(pen, _startPosX.Value + 32, _startPosY.Value + 3, 2, 17); g.DrawRectangle(pen, _startPosX.Value + 32, _startPosY.Value + 30, 2, 17); diff --git a/ProjectMotorBoat/ProjectMotorBoat/EntityMotorBoat.cs b/ProjectMotorBoat/ProjectMotorBoat/EntityMotorBoat.cs index 9d238ad..9a9e846 100644 --- a/ProjectMotorBoat/ProjectMotorBoat/EntityMotorBoat.cs +++ b/ProjectMotorBoat/ProjectMotorBoat/EntityMotorBoat.cs @@ -31,12 +31,12 @@ public class EntityMotorBoat public bool InboardEngine { get; private set; } /// - /// Признак (опция) наличия вёсел + /// Признак (опция) наличия весла /// - public bool Paddle { get; private set; } + public bool Oar { get; private set; } /// - /// Возможность глиссирования + /// Признак (опция) наличия защитного стекла /// public bool ProtectiveGlass { get; private set; } @@ -53,16 +53,16 @@ public class EntityMotorBoat /// /// /// - /// - /// - public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool inboardEngine, bool paddle, bool protectiveGlass) + /// + /// + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool inboardEngine, bool oar, bool protectiveGlass) { Speed = speed; Weight = weight; BodyColor = bodyColor; AdditionalColor = additionalColor; InboardEngine = inboardEngine; - Paddle = paddle; + Oar = oar; ProtectiveGlass = protectiveGlass; } } \ No newline at end of file