готовый entity

This commit is contained in:
Данил Лопатин 2024-02-18 14:03:07 +03:00
parent 5d71097f9e
commit 380515288d

View File

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