From 9db19f8397d53684b3709dfb5da15b1752fca772 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Sun, 8 Oct 2023 17:34:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=20EntityPlane?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectStormtrooper/EntityPlane.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ProjectStormtrooper/EntityPlane.java 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; + } +}