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) {