PIbd-23_Panina_A.D.Cruiser..../EntityCruiser.java
2023-11-24 23:51:47 +04:00

47 lines
1.0 KiB
Java

import java.awt.*;
public class EntityCruiser {
private int Speed;
private double Weight;
private Color BodyColor;
private Color AdditionalColor;
private boolean HelicopterPad;
private boolean Coating;
private double Step;
public int Speed() {
return Speed;
}
public double Weight() {
return Weight;
}
public Color BodyColor() {
return BodyColor;
}
public Color AdditionalColor() {
return AdditionalColor;
}
public boolean HelicopterPad() {
return HelicopterPad;
}
public boolean Coating() {
return Coating;
}
public double Step() {
return Step;
}
public void Init(int speed, double weight, Color bodyColor, Color
additionalColor, boolean helicopterPad, boolean coating)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
HelicopterPad = helicopterPad;
Coating = coating;
Step = Speed * 100 / Weight;
}
}