PIbd-14_Antonova_A.A.__Hard/EntityDumpTruck.java

36 lines
885 B
Java
Raw Normal View History

2024-05-09 20:09:37 +04:00
import java.awt.*;
public class EntityDumpTruck {
public int Speed;
private int get_Speed(){ return Speed; }
public double Weight;
private double get_Weight(){return Weight; }
public Color BodyColor;
private Color get_BodyColor(){ return BodyColor; }
public Color AdditionalColor;
private Color get_AdditionalColor(){ return AdditionalColor; }
public Boolean Body;
private Boolean get_Body() { return Body; }
public Boolean Tent;
private Boolean get_Tent() { return Tent; }
public double Step;
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, Boolean body, Boolean tent)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
Body = body;
Tent = tent;
Step = speed * 100 / weight;
}
}