PIbd-21_Potapov_N.S._Stormt.../ProjectStormtrooper/EntityStormtrooper.java

26 lines
630 B
Java
Raw Normal View History

package ProjectStormtrooper;
import java.awt.*;
public class EntityStormtrooper {
public int Speed;
public double Weight;
public Color BodyColor;
public Color AdditionalColor;
public boolean Rockets;
public boolean Bombs;
public double Step() {
return (double) Speed * 250 / Weight;
}
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, boolean rockets, boolean bombs) {
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
Rockets = rockets;
Bombs = bombs;
}
}