PIbd-14_Antonova_A.A.__Hard/Entities/EntityTruck.java
2024-05-09 22:23:57 +04:00

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;
}
}