From 45aa67a6bca22684f1966c7c8b7150d5201f50a4 Mon Sep 17 00:00:00 2001 From: the Date: Tue, 11 Oct 2022 10:38:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ship/Ship/MapWithSetShipsGeneric.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Ship/Ship/MapWithSetShipsGeneric.cs b/Ship/Ship/MapWithSetShipsGeneric.cs index c06001a..9bf0e93 100644 --- a/Ship/Ship/MapWithSetShipsGeneric.cs +++ b/Ship/Ship/MapWithSetShipsGeneric.cs @@ -80,7 +80,7 @@ namespace Ship Bitmap bmp = new(_pictureWidth, _pictureHeight); Graphics gr = Graphics.FromImage(bmp); DrawBackground(gr); - DrawCars(gr); + DrawShips(gr); return bmp; } /// @@ -169,18 +169,18 @@ namespace Ship /// Метод прорисовки объектов /// /// - private void DrawCars(Graphics g) + private void DrawShips(Graphics g) { int width = _pictureWidth / _placeSizeWidth; int height = _pictureHeight / _placeSizeHeight; for (int i = 0; i < _setShips.Count; i++) { - var artillery = _setShips.Get(i); - if (artillery != null) + var ship = _setShips.Get(i); + if (ship != null) { - artillery.SetObject((width - i % width - 1) * _placeSizeWidth + 10, (i / width) * _placeSizeHeight + 10, _pictureWidth, _pictureHeight); - artillery.DrawningObject(g); + ship.SetObject((width - i % width - 1) * _placeSizeWidth + 10, (i / width) * _placeSizeHeight + 10, _pictureWidth, _pictureHeight); + ship.DrawningObject(g); } } }