PIbd-23_Dyakonov_R_R_Tank/ProjectTank/TankEntity.cs
2023-10-03 13:19:27 +04:00

29 lines
949 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectTank
{
internal class Tank
{
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 bool IsAntiAircraftGun { get; private set; }
public bool IsTankMuzzle { get; private set; }
public double Step => (double)Speed * 100 / Weight;
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool isAntiAircraftGun, bool isTankTower)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
IsAntiAircraftGun = isAntiAircraftGun;
IsTankMuzzle = isTankTower;
}
}
}