PIbd-23_Panina_A.D.Cruiser..../EntityCruiser.java
2023-12-09 00:17:07 +04:00

14 lines
384 B
Java

import java.awt.*;
public class EntityCruiser {
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)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}