Изменено форматирование кода

This commit is contained in:
Илья 2023-10-10 15:48:46 +04:00
parent eb9938a360
commit aa1469a83d
7 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,5 @@
package projectMonorail; package projectMonorail;
public enum DirectionType { public enum DirectionType {
Up, Up,

View File

@ -6,8 +6,6 @@ public class DrawingMonorail {
private EntityMonorail entityMonorail; private EntityMonorail entityMonorail;
private DrawingWheels drawingWheels;
public EntityMonorail getEntityMonorail() { public EntityMonorail getEntityMonorail() {
return entityMonorail; return entityMonorail;
} }
@ -16,6 +14,8 @@ public class DrawingMonorail {
this.entityMonorail = entityMonorail; this.entityMonorail = entityMonorail;
} }
private DrawingWheels drawingWheels;
private int pictureWidth; private int pictureWidth;
private int pictureHeight; private int pictureHeight;

View File

@ -3,6 +3,7 @@ package projectMonorail;
import java.awt.*; import java.awt.*;
public class DrawingWheels { public class DrawingWheels {
private WheelNumber wheelNumber; private WheelNumber wheelNumber;
public void setWheelNumber(int number) { public void setWheelNumber(int number) {

View File

@ -49,6 +49,7 @@ public class EntityMonorail {
public boolean getMagneticRail() { public boolean getMagneticRail() {
return magneticRail; return magneticRail;
} }
private void setMagneticRail(boolean magneticRail) { private void setMagneticRail(boolean magneticRail) {
this.magneticRail = magneticRail; this.magneticRail = magneticRail;
} }

View File

@ -17,5 +17,4 @@ public class FrameMonorail extends JFrame {
setLocationRelativeTo(null); setLocationRelativeTo(null);
setVisible(true); setVisible(true);
} }
} }

View File

@ -2,7 +2,7 @@ package projectMonorail;
public class Main { public class Main {
public static void main(String[] args) { public static void main(String[] args) {
FrameMonorail frame = new FrameMonorail(); FrameMonorail frameMonorail = new FrameMonorail();
} }
} }

View File

@ -1,4 +1,5 @@
package projectMonorail; package projectMonorail;
public enum WheelNumber { public enum WheelNumber {
Two, Two,