15 lines
372 B
Java
15 lines
372 B
Java
|
import java.awt.*;
|
||
|
public class EntityShip {
|
||
|
public int Speed;
|
||
|
public double Weight;
|
||
|
public Color BodyColor;
|
||
|
public double Step;
|
||
|
public EntityShip(int speed, double weight, Color bodyColor)
|
||
|
{
|
||
|
Speed = speed;
|
||
|
Weight = weight;
|
||
|
BodyColor = bodyColor;
|
||
|
Step = (double)Speed * 100 / Weight;
|
||
|
}
|
||
|
}
|