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

25 lines
517 B
Java
Raw Normal View History

2024-05-09 20:09:37 +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;
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;
}
}