PIbd-14_Antonova_A.A.__Hard/Entities/EntityTruck.java

25 lines
516 B
Java
Raw Normal View History

2024-06-10 13:56:47 +04:00
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;
}
}