Переделаны названия

This commit is contained in:
Павел Сорокин 2022-10-19 16:11:11 +04:00
parent 976db2fa2b
commit c8a7dece5b

View File

@ -25,9 +25,9 @@ namespace Liner
_pictureHeight = picHeight;
_map = map;
}
public static bool operator +(MapWithSetShipsGeneric<T, U> map, T car)
public static bool operator +(MapWithSetShipsGeneric<T, U> 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;