2023-09-13 11:06:28 +04:00
|
|
|
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;
|
2023-09-13 12:28:57 +04:00
|
|
|
|
2023-09-13 11:06:28 +04:00
|
|
|
public double Step() {
|
|
|
|
return (double) Speed * 250 / Weight;
|
|
|
|
}
|
2023-09-13 12:28:57 +04:00
|
|
|
|
2023-09-13 11:06:28 +04:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|