39 lines
620 B
Java
39 lines
620 B
Java
package Classes;
|
|
|
|
import java.awt.*;
|
|
|
|
public class EntityAircraft
|
|
{
|
|
public int Speed;
|
|
public float Weight;
|
|
public Color BodyColor;
|
|
public float Step;
|
|
|
|
public EntityAircraft(int speed,float weight,Color bodyColor)
|
|
{
|
|
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;
|
|
}
|
|
} |