16 lines
438 B
Java
16 lines
438 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;
|
|
}
|
|
public void setBodyColor(Color color){BodyColor = color;}
|
|
}
|