Добавлен класс EntityPlane
This commit is contained in:
parent
d0913e1f47
commit
9db19f8397
19
ProjectStormtrooper/EntityPlane.java
Normal file
19
ProjectStormtrooper/EntityPlane.java
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user