import java.awt.*; public class EntityRoadTrain { public int Speed; public double Weight; public Color BodyColor; public Color AdditionalColor; public boolean Wheel; public boolean Door; public boolean Light; public double Step; public int numWheel; public void Init(int speed, double weight, Color bodyColor, Color additionalColor, boolean wheel, boolean door, boolean light, int numwheel) { numWheel = numwheel; Speed = speed; Weight = weight; BodyColor = bodyColor; AdditionalColor = additionalColor; Wheel = wheel; Door = door; Light = light; Step = (double)Speed * 100 / Weight; } }