PIbd-21_Zhirnova_A_E_Double.../DoubleDeckerBus/Entities/EntityBus.java

33 lines
611 B
Java
Raw Normal View History

package DoubleDeckerBus.Entities;
import java.awt.*;
public class EntityBus {
public int Speed;
public double Weight;
public Color BodyColor;
public double Step;
public int Speed() {
return Speed;
}
public double Weight() {
return Weight;
}
public Color BodyColor() {
return BodyColor;
}
public double Step() {
return Step;
}
public EntityBus(int speed, double weight, Color bodyColor) {
Speed = speed;
Weight = weight;
Step = (double) Speed * 100 / Weight;
BodyColor = bodyColor;
}
}