2023-12-14 13:43:13 +04:00
|
|
|
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;
|
2023-12-19 22:51:32 +04:00
|
|
|
public int numWheel;
|
2023-12-14 13:43:13 +04:00
|
|
|
public void Init(int speed, double weight, Color bodyColor, Color
|
2023-12-19 22:51:32 +04:00
|
|
|
additionalColor, boolean wheel, boolean door, boolean light, int numwheel)
|
2023-12-14 13:43:13 +04:00
|
|
|
{
|
2023-12-19 22:51:32 +04:00
|
|
|
numWheel = numwheel;
|
2023-12-14 13:43:13 +04:00
|
|
|
Speed = speed;
|
|
|
|
Weight = weight;
|
|
|
|
BodyColor = bodyColor;
|
|
|
|
AdditionalColor = additionalColor;
|
|
|
|
Wheel = wheel;
|
|
|
|
Door = door;
|
|
|
|
Light = light;
|
|
|
|
Step = (double)Speed * 100 / Weight;
|
|
|
|
}
|
|
|
|
}
|