27 lines
693 B
Java
27 lines
693 B
Java
package ProjectElectricLocomotive;
|
|
|
|
import java.awt.*;
|
|
|
|
public class EntityElectricLocomotive {
|
|
public int Speed;
|
|
public double Weight;
|
|
public Color BodyColor;
|
|
public Color AdditionalColor;
|
|
public boolean Horns;
|
|
public boolean SeifBatteries;
|
|
public double Step()
|
|
{
|
|
return (double) Speed * 100 / Weight;
|
|
}
|
|
public void Init(int speed, double weight, Color bodyColor, Color additionalColor,
|
|
boolean horns, boolean seifBatteries)
|
|
{
|
|
Speed = speed;
|
|
Weight = weight;
|
|
BodyColor = bodyColor;
|
|
AdditionalColor = additionalColor;
|
|
Horns = horns;
|
|
SeifBatteries = seifBatteries;
|
|
}
|
|
}
|