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");