36 lines
885 B
Java
36 lines
885 B
Java
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;
|
|
}
|
|
|
|
}
|