PIbd-23_Lisov_N.A._AirFight.../AirFighter/EntityAircraft.cs

42 lines
759 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AirFighter
{
internal class EntityAircraft
{
public int Speed
{
get;
private set;
}
public float Weight
{
get;
private set;
}
public Color BodyColor
{
get;
private set;
}
//=> оператор подобный return
public float Step => Speed * 100 / Weight;
public EntityAircraft(int speed, float weight, Color bodyColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}
}