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; + } +} + + + + + + + +}