PIbd-14_Antonova_A.A.__Hard/Entities/EntityTruck.java
2024-06-10 21:17:02 +04:00

25 lines
516 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;
public 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;
}
}