50 lines
1.7 KiB
C#
50 lines
1.7 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace ArmoredVehicle
|
||
{
|
||
internal class TankEnity : ArmoredVehicleEntity
|
||
{
|
||
/// <summary>
|
||
/// Инициализация свойств
|
||
/// </summary>
|
||
/// <param name="speed">Скорость</param>
|
||
/// <param name="weight">Вес автомобиля</param>
|
||
/// <param name="bodyColor">Цвет кузова</param>
|
||
/// <param name="dopColor">Дополнительный цвет</param>
|
||
/// <param name="MachineGun">Признак наличия пулемета</param>
|
||
/// <param name="Tower">Признак наличия башни</param>
|
||
/// <param name="Gun">Признак наличия орудия</param>
|
||
|
||
public TankEnity(int speed, float weight, Color bodyColor, Color dopColor, bool machineGun, bool tower, bool gun) : base(speed, weight, bodyColor)
|
||
{
|
||
DopColor = dopColor;
|
||
MachineGun = machineGun;
|
||
Tower = tower;
|
||
Gun = gun;
|
||
}
|
||
|
||
/// <summary>
|
||
/// Дополнительный цвет
|
||
/// </summary>
|
||
public Color DopColor { get; private set; }
|
||
/// <summary>
|
||
/// Признак наличия пулемета
|
||
/// </summary>
|
||
public bool MachineGun { get; private set; }
|
||
/// <summary>
|
||
/// Признак наличия башни
|
||
/// </summary>
|
||
public bool Tower { get; private set; }
|
||
/// <summary>
|
||
/// Признак наличия орудия
|
||
/// </summary>
|
||
public bool Gun { get; private set; }
|
||
|
||
|
||
}
|
||
}
|