From fc3ca6937efea6a4dab6bf702e7fc816c8e04044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B0=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A4=D0=B5=D0=B4?= =?UTF-8?q?=D0=BE=D1=80=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 28 Dec 2023 18:01:37 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B8=D0=B7=D0=BE=D1=88?= =?UTF-8?q?=D0=BB=D0=B8=20=D1=82=D0=B5=D1=85=D0=BD=D0=B8=D1=87=D0=B5=D1=81?= =?UTF-8?q?=D0=BA=D0=B8=D0=B5=20=D1=88=D0=BE=D0=BA=D0=BE=D0=BB=D0=B0=D0=B4?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hydroplane/src/main/java/org/example/DrawingHydroplane.java | 2 -- Hydroplane/src/main/java/org/example/WindowDrawing.java | 1 + Hydroplane/src/main/java/org/example/WindowDrawingRect.java | 1 + Hydroplane/src/main/java/org/example/WindowDrawingTringle.java | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Hydroplane/src/main/java/org/example/DrawingHydroplane.java b/Hydroplane/src/main/java/org/example/DrawingHydroplane.java index 90fa49f..e151ed3 100644 --- a/Hydroplane/src/main/java/org/example/DrawingHydroplane.java +++ b/Hydroplane/src/main/java/org/example/DrawingHydroplane.java @@ -50,8 +50,6 @@ public class DrawingHydroplane extends DrawingPlane{ g.drawLine(_startPosX + 125, _startPosY + 55, _startPosX + 125, _startPosY + 70); g.drawLine(_startPosX + 130, _startPosY + 55, _startPosX + 130, _startPosY + 70); -// windowDrawing.Draw(_startPosX, _startPosY, ((EntityHydroplane)_EntityPlane).AdditionalColor, g); - if (((EntityHydroplane)_EntityPlane).Bobber) { g.fillPolygon( new int[]{ _startPosX + 55, _startPosX + 55, _startPosX + 155, _startPosX + 175 }, diff --git a/Hydroplane/src/main/java/org/example/WindowDrawing.java b/Hydroplane/src/main/java/org/example/WindowDrawing.java index d385155..5a9a3e4 100644 --- a/Hydroplane/src/main/java/org/example/WindowDrawing.java +++ b/Hydroplane/src/main/java/org/example/WindowDrawing.java @@ -30,6 +30,7 @@ public class WindowDrawing implements IWindowDrawing{ public void Draw(int _startPosX, int _startPosY, Color color, Graphics2D g){ g.setColor(color); + // обработка исключения при запуске, это не дублирующийся код! if (numWindow == null) numWindow = NumWindow.tenWindows; switch (numWindow) { diff --git a/Hydroplane/src/main/java/org/example/WindowDrawingRect.java b/Hydroplane/src/main/java/org/example/WindowDrawingRect.java index 5bfe50f..54df155 100644 --- a/Hydroplane/src/main/java/org/example/WindowDrawingRect.java +++ b/Hydroplane/src/main/java/org/example/WindowDrawingRect.java @@ -30,6 +30,7 @@ public class WindowDrawingRect implements IWindowDrawing{ public void Draw(int _startPosX, int _startPosY, Color color, Graphics2D g){ g.setColor(color); + // обработка исключения при запуске, это не дублирующийся код! if (numWindow == null) numWindow = NumWindow.tenWindows; switch (numWindow) { diff --git a/Hydroplane/src/main/java/org/example/WindowDrawingTringle.java b/Hydroplane/src/main/java/org/example/WindowDrawingTringle.java index 450f6b0..5ee3deb 100644 --- a/Hydroplane/src/main/java/org/example/WindowDrawingTringle.java +++ b/Hydroplane/src/main/java/org/example/WindowDrawingTringle.java @@ -30,6 +30,7 @@ public class WindowDrawingTringle implements IWindowDrawing{ public void Draw(int _startPosX, int _startPosY, Color color, Graphics2D g){ g.setColor(color); + // обработка исключения при запуске, это не дублирующийся код! if (numWindow == null) numWindow = NumWindow.tenWindows; switch (numWindow) {