44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
import java.awt.*;
|
|
public class EntityAirplaneWithRadar {
|
|
private int Speed, IlluminatorNumb;
|
|
private double Weight, Step;
|
|
private Color BodyColor, AdditionalColor, IlluminatorColor;
|
|
private boolean Radar;
|
|
private boolean Tank;
|
|
public int Speed(){
|
|
return Speed;
|
|
}
|
|
public int IlluminatorNumb(){
|
|
return IlluminatorNumb;
|
|
}
|
|
public double Weight(){
|
|
return Weight;
|
|
}
|
|
public double Step(){
|
|
return Step;
|
|
}
|
|
public Color BodyColor(){
|
|
return BodyColor;
|
|
}
|
|
public Color AdditionalColor(){
|
|
return AdditionalColor;
|
|
}
|
|
public Color IlluminatorColor(){
|
|
return IlluminatorColor;
|
|
}
|
|
public boolean Radar(){return Radar;}
|
|
public boolean Tank(){return Tank;}
|
|
public void Init(int speed, double weight, Color bodyColor, Color illuminatorColor, Color additionalColor, int illuminatorNumb,
|
|
boolean radar, boolean tank ){
|
|
Speed = speed;
|
|
Weight = weight;
|
|
Step = (double)Speed * 100 / Weight;
|
|
BodyColor = bodyColor;
|
|
IlluminatorColor=illuminatorColor;
|
|
AdditionalColor = additionalColor;
|
|
IlluminatorNumb = illuminatorNumb;
|
|
Radar = radar;
|
|
Tank = tank;
|
|
}
|
|
}
|