diff --git a/ProjectStormtrooper/EntityPlane.java b/ProjectStormtrooper/EntityPlane.java new file mode 100644 index 0000000..40174c7 --- /dev/null +++ b/ProjectStormtrooper/EntityPlane.java @@ -0,0 +1,19 @@ +package ProjectStormtrooper; + +import java.awt.*; + +public class EntityPlane { + public int Speed; + public double Weight; + public Color BodyColor; + + public double Step() { + return (double) Speed * 250 / Weight; + } + + public EntityPlane(int speed, double weight, Color bodyColor) { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + } +}