2023-11-24 23:51:47 +04:00
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
public class EntityCruiser {
|
2023-12-08 23:20:53 +04:00
|
|
|
public int Speed;
|
|
|
|
public double Weight;
|
|
|
|
public Color BodyColor;
|
|
|
|
public double Step() {return (double)Speed * 100 / Weight;};
|
|
|
|
public boolean OrnamentWheels;
|
|
|
|
|
|
|
|
public EntityCruiser(int speed, double weight, Color bodyColor)
|
2023-11-24 23:51:47 +04:00
|
|
|
{
|
|
|
|
Speed = speed;
|
|
|
|
Weight = weight;
|
|
|
|
BodyColor = bodyColor;
|
|
|
|
}
|
|
|
|
}
|