Обновление класса-сущности "продвинутого" объекта EntityAirBomber
This commit is contained in:
parent
0d60e02b8a
commit
e8e666afdc
@ -6,22 +6,15 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace AirBomber
|
namespace AirBomber
|
||||||
{
|
{
|
||||||
public class EntityAirBomber
|
public class EntityAirBomber : EntityAirPlane
|
||||||
{
|
{
|
||||||
public int Speed { get; private set; }
|
|
||||||
public double Weight { get; private set; }
|
|
||||||
public Color BodyColor { get; private set; }
|
|
||||||
public Color AdditionalColor { get; private set; }
|
public Color AdditionalColor { get; private set; }
|
||||||
public bool Bombs { get; private set; }
|
public bool Bombs { get; private set; }
|
||||||
public Color BombsColor { get; private set; }
|
public Color BombsColor { get; private set; }
|
||||||
public bool FuelTanks { get; private set; }
|
public bool FuelTanks { get; private set; }
|
||||||
public double Step => (double)Speed * 100 / Weight;
|
public EntityAirBomber(int speed, double weight, Color bodyColor, Color
|
||||||
public void Init(int speed, double weight, Color bodyColor, Color
|
|
||||||
additionalColor, bool bombs, Color bombsColor, bool fuelTanks)
|
additionalColor, bool bombs, Color bombsColor, bool fuelTanks)
|
||||||
{
|
{
|
||||||
Speed = speed;
|
|
||||||
Weight = weight;
|
|
||||||
BodyColor = bodyColor;
|
|
||||||
AdditionalColor = additionalColor;
|
AdditionalColor = additionalColor;
|
||||||
Bombs = bombs;
|
Bombs = bombs;
|
||||||
BombsColor = bombsColor;
|
BombsColor = bombsColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user