From bf991f6eedc43a20668454e34fe84a43c954eb9a Mon Sep 17 00:00:00 2001 From: IlyasValiulov <148232695+IlyasValiulov@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:38:36 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=B0=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=961?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyShip/src/DrawingWarmlyShip.java | 2 +- WarmlyShip/src/EntityWarmlyShip.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WarmlyShip/src/DrawingWarmlyShip.java b/WarmlyShip/src/DrawingWarmlyShip.java index e6bcc2b..2a3a221 100644 --- a/WarmlyShip/src/DrawingWarmlyShip.java +++ b/WarmlyShip/src/DrawingWarmlyShip.java @@ -86,7 +86,7 @@ public class DrawingWarmlyShip extends JPanel { public void DrawTransport(Graphics2D g) { if (EntityWarmlyShip == null || _StartPosX == null || _StartPosY == null) return; int y = _StartPosY; - if (EntityWarmlyShip.getSheepPipes()) { + if (EntityWarmlyShip.getShipPipes()) { //трубы g.setColor(EntityWarmlyShip.getAdditionalColor()); g.fillRect(_StartPosX + 70, _StartPosY, 12, 30); diff --git a/WarmlyShip/src/EntityWarmlyShip.java b/WarmlyShip/src/EntityWarmlyShip.java index 5d9b98c..6fd0aed 100644 --- a/WarmlyShip/src/EntityWarmlyShip.java +++ b/WarmlyShip/src/EntityWarmlyShip.java @@ -6,18 +6,18 @@ public class EntityWarmlyShip { public Color getBodyColor() {return BodyColor;} private Color AdditionalColor; public Color getAdditionalColor() {return AdditionalColor;} - private boolean SheepPipes; - public boolean getSheepPipes() {return SheepPipes;} + private boolean ShipPipes; + public boolean getShipPipes() {return ShipPipes;} private boolean FuelTank; public boolean getFuelTank() {return FuelTank;} public double Step; - public void Init(int speed, double weight, Color bodycolor, Color additionalcolor, boolean sheeppipes, boolean fueltank) + public void Init(int speed, double weight, Color bodycolor, Color additionalcolor, boolean shippipes, boolean fueltank) { Speed = speed; Weight = weight; BodyColor = bodycolor; AdditionalColor = additionalcolor; - SheepPipes = sheeppipes; + ShipPipes = shippipes; FuelTank = fueltank; Step = Speed * 100 / Weight; }