From 7d64623ac15cac72448d9479770036cb7f705eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= <Илья@WIN-RANNDDD> Date: Tue, 10 Oct 2023 18:36:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D1=8B=20?= =?UTF-8?q?=D0=BB=D0=B8=D1=88=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE?= =?UTF-8?q?=D0=B4=D1=8B=20=D0=B8=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BC=D0=BE=D0=B4=D0=B8=D1=84=D0=B8=D0=BA=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=B0=20?= =?UTF-8?q?=D1=83=20=D0=BF=D0=BE=D0=BB=D1=8F=20=D0=B2=20=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D1=81=D1=81=D0=B5=20FrameMonorail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/projectMonorail/DrawingMonorail.java | 4 ---- src/projectMonorail/EntityMonorail.java | 26 ------------------------ src/projectMonorail/FrameMonorail.java | 2 +- 3 files changed, 1 insertion(+), 31 deletions(-) diff --git a/src/projectMonorail/DrawingMonorail.java b/src/projectMonorail/DrawingMonorail.java index d0ab47f..80b4886 100644 --- a/src/projectMonorail/DrawingMonorail.java +++ b/src/projectMonorail/DrawingMonorail.java @@ -10,10 +10,6 @@ public class DrawingMonorail { return entityMonorail; } - private void setEntityMonorail(EntityMonorail entityMonorail) { - this.entityMonorail = entityMonorail; - } - private DrawingWheels drawingWheels; private int pictureWidth; diff --git a/src/projectMonorail/EntityMonorail.java b/src/projectMonorail/EntityMonorail.java index d25a35d..8eee9e4 100644 --- a/src/projectMonorail/EntityMonorail.java +++ b/src/projectMonorail/EntityMonorail.java @@ -10,62 +10,36 @@ public class EntityMonorail { return speed; } - private void setSpeed(int speed) { - this.speed = speed; - } - private double weight; public double getWeight() { return weight; } - private void setWeight(double weight) { - this.weight = weight; - } - private Color mainColor; public Color getMainColor() { return mainColor; } - private void setMainColor(Color mainColor) { - this.mainColor = mainColor; - } - private Color additionalColor; public Color getAdditionalColor() { return additionalColor; } - private void setAdditionalColor(Color additionalColor) { - this.additionalColor = additionalColor; - } - private boolean magneticRail; public boolean getMagneticRail() { return magneticRail; } - private void setMagneticRail(boolean magneticRail) { - this.magneticRail = magneticRail; - } - private boolean extraCabin; public boolean getExtraCabin() { return extraCabin; } - private void setExtraCabin(boolean extraCabin) { - this.extraCabin = extraCabin; - } - - private double step; - public double getStep() { return (double)speed * 100 / weight; } diff --git a/src/projectMonorail/FrameMonorail.java b/src/projectMonorail/FrameMonorail.java index 23ba94e..287cd83 100644 --- a/src/projectMonorail/FrameMonorail.java +++ b/src/projectMonorail/FrameMonorail.java @@ -4,7 +4,7 @@ import javax.swing.*; public class FrameMonorail extends JFrame { - PictureBox pictureBox; + private PictureBox pictureBox; public FrameMonorail() { super("Monorail");