PIbd-14_Pruidze_I.K_Simple_.../ProjectCruiser/Entities/EntityCruiser.cs

25 lines
751 B
C#
Raw Normal View History

2024-06-12 19:21:59 +04:00
namespace ProjectCruiser.Entities;
public class EntityCruiser : EntityBase
{
public Color AdditionalColor { get; private set; } // доп. цвет
public void setAdditionalColor(Color clr)
{
AdditionalColor = clr;
}
// признаки (наличия)
public bool HelicopterPads { get; private set; } // вертолетная площадка
2024-06-13 10:57:01 +04:00
public bool Hangars { get; private set; } // ангар
public EntityCruiser(int speed, double weight, Color mainc,
2024-06-15 10:03:23 +04:00
Color additionalColor, bool pad, bool hangars)
: base(speed, weight, mainc)
{
AdditionalColor = additionalColor;
2024-06-15 10:03:23 +04:00
HelicopterPads = pad; // non-default now for editor Form3
2024-06-13 10:57:01 +04:00
Hangars = hangars;
}
}