2023-10-02 21:42:00 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectAirFighter.Entities
|
|
|
|
|
{
|
|
|
|
|
public class EntityAirplane
|
|
|
|
|
{
|
|
|
|
|
public int Speed { get; private set; }
|
|
|
|
|
public double Weight { get; private set; }
|
2023-11-19 00:11:44 +04:00
|
|
|
|
public Color BodyColor { get; set; }
|
2023-10-02 21:42:00 +04:00
|
|
|
|
public double Step => (double)Speed * 100 / Weight;
|
|
|
|
|
|
|
|
|
|
public EntityAirplane(int speed, double weight, Color bodyColor)
|
|
|
|
|
{
|
|
|
|
|
Speed = speed;
|
|
|
|
|
Weight = weight;
|
|
|
|
|
BodyColor = bodyColor;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|