diff --git a/Sailboat/Sailboat/DrawingObjectBoat.cs b/Sailboat/Sailboat/DrawingObjectBoat.cs index 21e0011..6c7f211 100644 --- a/Sailboat/Sailboat/DrawingObjectBoat.cs +++ b/Sailboat/Sailboat/DrawingObjectBoat.cs @@ -24,8 +24,7 @@ namespace Sailboat.MovementStrategy { return null; } - return new ObjectParameters(_drawingBoat.GetPosX, - _drawingBoat.GetPosY, _drawingBoat.GetWidth, _drawingBoat.GetHeight); + return new ObjectParameters(_drawingBoat.GetPosX, _drawingBoat.GetPosY, _drawingBoat.GetWidth, _drawingBoat.GetHeight); } } public int GetStep => (int)(_drawingBoat?.EntityBoat?.Step ?? 0); diff --git a/Sailboat/Sailboat/DrawingSailboat.cs b/Sailboat/Sailboat/DrawingSailboat.cs index e715b3c..130b9cc 100644 --- a/Sailboat/Sailboat/DrawingSailboat.cs +++ b/Sailboat/Sailboat/DrawingSailboat.cs @@ -11,8 +11,7 @@ namespace Sailboat.DrawingObjects { public class DrawingSailboat : DrawingBoat { - public DrawingSailboat(int speed, double weight, Color bodyColor, Color -additionalColor, bool hull, bool sail, int width, int height) : + public DrawingSailboat(int speed, double weight, Color bodyColor, Color additionalColor, bool hull, bool sail, int width, int height) : base(speed, weight, bodyColor, width, height, 160, 160) { if (EntityBoat != null) diff --git a/Sailboat/Sailboat/FormSailboat.cs b/Sailboat/Sailboat/FormSailboat.cs index d80f60f..e6d4d05 100644 --- a/Sailboat/Sailboat/FormSailboat.cs +++ b/Sailboat/Sailboat/FormSailboat.cs @@ -65,7 +65,6 @@ namespace Sailboat } Draw(); } - private void buttonStep_Click(object sender, EventArgs e) { if (_drawingBoat == null) @@ -101,6 +100,5 @@ namespace Sailboat _abstractStrategy = null; } } - } } \ No newline at end of file diff --git a/Sailboat/Sailboat/ObjectParameters.cs b/Sailboat/Sailboat/ObjectParameters.cs index 7f80284..f3a5888 100644 --- a/Sailboat/Sailboat/ObjectParameters.cs +++ b/Sailboat/Sailboat/ObjectParameters.cs @@ -50,6 +50,5 @@ namespace Sailboat.MovementStrategy _width = width; _height = height; } - } }