Изменено форматирование кода
This commit is contained in:
parent
eb9938a360
commit
aa1469a83d
@ -1,4 +1,5 @@
|
|||||||
package projectMonorail;
|
package projectMonorail;
|
||||||
|
|
||||||
public enum DirectionType {
|
public enum DirectionType {
|
||||||
Up,
|
Up,
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,4 @@ public class FrameMonorail extends JFrame {
|
|||||||
setLocationRelativeTo(null);
|
setLocationRelativeTo(null);
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
package projectMonorail;
|
package projectMonorail;
|
||||||
|
|
||||||
public enum WheelNumber {
|
public enum WheelNumber {
|
||||||
Two,
|
Two,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user