Добавлен класс EntityPlane

This commit is contained in:
Никита Потапов 2023-10-08 17:34:13 +04:00
parent d0913e1f47
commit 9db19f8397

View File

@ -0,0 +1,19 @@
package ProjectStormtrooper;
import java.awt.*;
public class EntityPlane {
public int Speed;
public double Weight;
public Color BodyColor;
public double Step() {
return (double) Speed * 250 / Weight;
}
public EntityPlane(int speed, double weight, Color bodyColor) {
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}