diff --git a/WarPlanes/WarPlanes/DrawningObject.cs b/WarPlanes/WarPlanes/DrawningObjectWarPlane.cs similarity index 85% rename from WarPlanes/WarPlanes/DrawningObject.cs rename to WarPlanes/WarPlanes/DrawningObjectWarPlane.cs index b2253d8..6af1850 100644 --- a/WarPlanes/WarPlanes/DrawningObject.cs +++ b/WarPlanes/WarPlanes/DrawningObjectWarPlane.cs @@ -1,10 +1,10 @@ namespace WarPlanes { - internal class DrawningObject : IDrawningObject + internal class DrawningObjectWarPlane : IDrawningObject { private DrawningWarPlane _warplane = null; - public DrawningObject(DrawningWarPlane warplane) + public DrawningObjectWarPlane(DrawningWarPlane warplane) { _warplane = warplane; } diff --git a/WarPlanes/WarPlanes/Fighter.cs b/WarPlanes/WarPlanes/EntityFighter.cs similarity index 100% rename from WarPlanes/WarPlanes/Fighter.cs rename to WarPlanes/WarPlanes/EntityFighter.cs diff --git a/WarPlanes/WarPlanes/FormMap.cs b/WarPlanes/WarPlanes/FormMap.cs index 22e85bc..b19dd9a 100644 --- a/WarPlanes/WarPlanes/FormMap.cs +++ b/WarPlanes/WarPlanes/FormMap.cs @@ -18,7 +18,7 @@ toolStripStatusLabelSpeed.Text = $"Скорость: {warplane.WarPlane.Speed}"; toolStripStatusLabelWeight.Text = $"Вес: {warplane.WarPlane.Weight}"; toolStripStatusLabelBodyColor.Text = $"Цвет: {warplane.WarPlane.BodyColor.Name}"; - pictureBoxWarPlane.Image = _abstractMap.CreateMap(pictureBoxWarPlane.Width, pictureBoxWarPlane.Height, new DrawningObject(warplane)); + pictureBoxWarPlane.Image = _abstractMap.CreateMap(pictureBoxWarPlane.Width, pictureBoxWarPlane.Height, new DrawningObjectWarPlane(warplane)); } /// /// Обработка нажатия кнопки "Создать"