56 lines
1.2 KiB
Java
56 lines
1.2 KiB
Java
import java.awt.*;
|
|
|
|
public class EntityDoubleDeckerBus {
|
|
private int Speed;
|
|
private int DoorNumber;
|
|
private double Weight;
|
|
private Color BodyColor;
|
|
private Color AdditionalColor;
|
|
private boolean SecondFloor;
|
|
private boolean Tailpipe;
|
|
private double Step;
|
|
|
|
public int Speed() {
|
|
return Speed;
|
|
}
|
|
|
|
public int DoorNumber() {
|
|
return DoorNumber;
|
|
}
|
|
|
|
public double Weight() {
|
|
return Weight;
|
|
}
|
|
|
|
public Color BodyColor() {
|
|
return BodyColor;
|
|
}
|
|
|
|
public Color AdditionalColor() {
|
|
return AdditionalColor;
|
|
}
|
|
|
|
public boolean SecondFloor() {
|
|
return SecondFloor;
|
|
}
|
|
|
|
public boolean Tailpipe() {
|
|
return Tailpipe;
|
|
}
|
|
public double Step() {
|
|
return Step;
|
|
}
|
|
|
|
public void Init(int speed, double weight, Color bodyColor, Color additionalColor,
|
|
int doorNumber, boolean secondFloor ,boolean tailpipe) {
|
|
Speed = speed;
|
|
Weight = weight;
|
|
Step = (double) Speed * 100 / Weight;
|
|
BodyColor = bodyColor;
|
|
AdditionalColor = additionalColor;
|
|
SecondFloor = secondFloor;
|
|
DoorNumber = doorNumber;
|
|
Tailpipe = tailpipe;
|
|
}
|
|
}
|