готовый entity
This commit is contained in:
parent
5d71097f9e
commit
380515288d
43
WarmlyLocomotive/src/EntityWarmlyLocomotive.java
Normal file
43
WarmlyLocomotive/src/EntityWarmlyLocomotive.java
Normal file
@ -0,0 +1,43 @@
|
||||
import javafx.scene.paint.Color;
|
||||
|
||||
public class EntityWarmlyLocomotive {
|
||||
|
||||
private int Speed;
|
||||
public int getSpeed() { return Speed; }
|
||||
|
||||
private double Weight;
|
||||
public double getWeight() { return Weight; }
|
||||
|
||||
private Color BodyColor;
|
||||
public Color getBodyColor() { return BodyColor; }
|
||||
|
||||
private Color AdditionalColor;
|
||||
public Color getAdditionColor() { return AdditionalColor; }
|
||||
|
||||
private boolean Tube;
|
||||
public boolean getTube() { return Tube; }
|
||||
|
||||
private boolean FuelTank;
|
||||
public boolean getFuelTank() { return FuelTank; }
|
||||
|
||||
public double Step = Speed * 100 / Weight;
|
||||
|
||||
public void Init(int speed, double weight, Color bodyColor, Color
|
||||
additionalColor, boolean tube, boolean fuelTank)
|
||||
{
|
||||
Speed = speed;
|
||||
Weight = weight;
|
||||
BodyColor = bodyColor;
|
||||
AdditionalColor = additionalColor;
|
||||
Tube = tube;
|
||||
FuelTank = fuelTank;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user