26 lines
699 B
Java
26 lines
699 B
Java
|
import java.awt.*;
|
||
|
|
||
|
|
||
|
public class EntityContainerShip {
|
||
|
public int Speed;
|
||
|
public double Weight;
|
||
|
public Color BodyColor;
|
||
|
public Color AdditionalColor;
|
||
|
public boolean Crane;
|
||
|
public boolean Conteiners;
|
||
|
public int Deck;
|
||
|
public double Step;
|
||
|
public void Init(int speed, double weight, Color bodyColor, Color
|
||
|
additionalColor, boolean crane, boolean containers, int deck)
|
||
|
{
|
||
|
Speed = speed;
|
||
|
Weight = weight;
|
||
|
BodyColor = bodyColor;
|
||
|
AdditionalColor = additionalColor;
|
||
|
Crane = crane;
|
||
|
Conteiners = containers;
|
||
|
Deck = deck;
|
||
|
Step = (double)Speed * 100 / Weight;
|
||
|
}
|
||
|
}
|