37 lines
819 B
Java
37 lines
819 B
Java
|
package DoubleDeckerBus.Entities;
|
||
|
|
||
|
|
||
|
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class EntityDoubleDeckerBus extends EntityBus {
|
||
|
public Color AdditionalColor;
|
||
|
public boolean SecondFloor;
|
||
|
public boolean Tailpipe;
|
||
|
|
||
|
public Color AdditionalColor() {
|
||
|
return AdditionalColor;
|
||
|
}
|
||
|
|
||
|
public boolean SecondFloor() {
|
||
|
return SecondFloor;
|
||
|
}
|
||
|
|
||
|
public boolean Tailpipe() {
|
||
|
return Tailpipe;
|
||
|
}
|
||
|
|
||
|
|
||
|
public double Step() {
|
||
|
return Step;
|
||
|
}
|
||
|
|
||
|
public EntityDoubleDeckerBus(int speed, double weight, Color bodyColor, Color additionalColor,
|
||
|
int doorNumber, boolean secondFloor ,boolean tailpipe) {
|
||
|
super(speed, weight, bodyColor);
|
||
|
AdditionalColor = additionalColor;
|
||
|
SecondFloor = secondFloor;
|
||
|
Tailpipe = tailpipe;
|
||
|
|
||
|
}
|
||
|
}
|