25 lines
517 B
Java
25 lines
517 B
Java
package Entities;
|
|
|
|
import java.awt.*;
|
|
|
|
public class EntityTruck {
|
|
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 double Step;
|
|
|
|
public EntityTruck(int speed, double weight, Color bodyColor)
|
|
{
|
|
Speed = speed;
|
|
Weight = weight;
|
|
BodyColor = bodyColor;
|
|
Step = (speed * 100) / weight;
|
|
}
|
|
}
|