2022-09-11 23:51:11 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AirFighter
|
|
|
|
|
{
|
2022-10-03 03:04:38 +04:00
|
|
|
|
public class EntityAircraft
|
2022-09-11 23:51:11 +04:00
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
|
2022-09-26 18:37:10 +04:00
|
|
|
|
public EntityAircraft(int speed, float weight, Color bodyColor)
|
2022-09-11 23:51:11 +04:00
|
|
|
|
{
|
|
|
|
|
Speed = speed;
|
|
|
|
|
Weight = weight;
|
|
|
|
|
BodyColor = bodyColor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|