43 lines
619 B
Java
43 lines
619 B
Java
|
package Classes;
|
||
|
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class EntityAircraft
|
||
|
{
|
||
|
public int Speed;
|
||
|
public float Weight;
|
||
|
public Color BodyColor;
|
||
|
public float Step;
|
||
|
|
||
|
|
||
|
public void Init(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;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|