PIbd-23_Mochalov_D.V._Locom.../EntityWarmlyLocomotive.java

20 lines
535 B
Java

import java.awt.*;
public class EntityWarmlyLocomotive extends EntityLocomotive{
public Color ExtraColor;
public final boolean Pipe;
public final boolean FuelStorage;
public EntityWarmlyLocomotive (int speed, float weight, Color bodyColor, Color extraColor, boolean pipe, boolean fuelStorage)
{
super(speed, weight, bodyColor);
ExtraColor = extraColor;
Pipe = pipe;
FuelStorage = fuelStorage;
}
public void SetExtraColor(Color color) {
ExtraColor = color;
}
}