using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
namespace Tank
{
public class EntityTank
{
///
/// Скорость
///
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 double Step => Speed * 100 / Weight;
public void Init(int speed, double weight, Color bodyColor, Color
additionalColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
}
}
}