diff --git a/Liner/Liner/MapWithSetShipsGeneric.cs b/Liner/Liner/MapWithSetShipsGeneric.cs index a61420d..e76dee0 100644 --- a/Liner/Liner/MapWithSetShipsGeneric.cs +++ b/Liner/Liner/MapWithSetShipsGeneric.cs @@ -25,9 +25,9 @@ namespace Liner _pictureHeight = picHeight; _map = map; } - public static bool operator +(MapWithSetShipsGeneric map, T car) + public static bool operator +(MapWithSetShipsGeneric map, T ship) { - if (map._setShips.Insert(car) == -1) + if (map._setShips.Insert(ship) == -1) { return false; } @@ -52,7 +52,7 @@ namespace Liner Bitmap bmp = new(_pictureWidth, _pictureHeight); Graphics gr = Graphics.FromImage(bmp); DrawBackground(gr); - DrawCars(gr); + DrawShips(gr); return bmp; } public Bitmap ShowOnMap() @@ -115,7 +115,7 @@ namespace Liner g.DrawLine(pen, i * _placeSizeWidth - 4, 0, i * _placeSizeWidth - 4, (_pictureHeight / _placeSizeHeight) * _placeSizeHeight); } } - private void DrawCars(Graphics g) + private void DrawShips(Graphics g) { int widthEl = _pictureWidth / _placeSizeWidth; int heightEl = _pictureHeight / _placeSizeHeight;