2022-10-24 19:41:28 +04:00
|
|
|
package Classes;
|
|
|
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
public class EntityAircraft
|
|
|
|
{
|
|
|
|
public int Speed;
|
|
|
|
public float Weight;
|
|
|
|
public Color BodyColor;
|
|
|
|
public float Step;
|
|
|
|
|
|
|
|
|
2022-11-08 13:49:17 +04:00
|
|
|
|
|
|
|
|
|
|
|
public EntityAircraft(int speed,float weight,Color bodyColor)
|
2022-10-24 19:41:28 +04:00
|
|
|
{
|
|
|
|
Speed = speed;
|
|
|
|
Weight = weight;
|
|
|
|
BodyColor = bodyColor;
|
|
|
|
Step = speed * 100 / weight;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getSpeed()
|
|
|
|
{
|
|
|
|
return Speed;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float getStep()
|
|
|
|
{
|
|
|
|
return Step;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float getWeight()
|
|
|
|
{
|
|
|
|
return Weight;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Color getBodyColor()
|
|
|
|
{
|
|
|
|
return BodyColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|