From 380515288d8c6c0d27f05bbf5f07aa036a8c7067 Mon Sep 17 00:00:00 2001 From: dlopatin Date: Sun, 18 Feb 2024 14:03:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D1=8B=D0=B9=20en?= =?UTF-8?q?tity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/EntityWarmlyLocomotive.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 WarmlyLocomotive/src/EntityWarmlyLocomotive.java diff --git a/WarmlyLocomotive/src/EntityWarmlyLocomotive.java b/WarmlyLocomotive/src/EntityWarmlyLocomotive.java new file mode 100644 index 0000000..35f44b0 --- /dev/null +++ b/WarmlyLocomotive/src/EntityWarmlyLocomotive.java @@ -0,0 +1,43 @@ +import javafx.scene.paint.Color; + +public class EntityWarmlyLocomotive { + + private int Speed; + public int getSpeed() { return Speed; } + + private double Weight; + public double getWeight() { return Weight; } + + private Color BodyColor; + public Color getBodyColor() { return BodyColor; } + + private Color AdditionalColor; + public Color getAdditionColor() { return AdditionalColor; } + + private boolean Tube; + public boolean getTube() { return Tube; } + + private boolean FuelTank; + public boolean getFuelTank() { return FuelTank; } + + public double Step = Speed * 100 / Weight; + + public void Init(int speed, double weight, Color bodyColor, Color +additionalColor, boolean tube, boolean fuelTank) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Tube = tube; + FuelTank = fuelTank; + } +} + + + + + + + +}