последние изменения
This commit is contained in:
parent
146d39f5f0
commit
974fa03ade
@ -155,7 +155,7 @@ namespace Lab1ContainersShip.DrawingObjects
|
||||
return;
|
||||
}
|
||||
Pen pen = new Pen(Color.Black);
|
||||
//Brush adbrush = new SolidBrush(EntityShip.AdditionalColor);
|
||||
|
||||
Brush brBlue = new SolidBrush(Color.Blue);
|
||||
Brush brBody = new SolidBrush(EntityShip.BodyColor);
|
||||
// заполнение борта
|
||||
|
@ -21,20 +21,7 @@ namespace Lab1ContainersShip.Entities
|
||||
/// Основной цвет
|
||||
/// </summary>
|
||||
public Color BodyColor { get; private set; }
|
||||
/// <summary>
|
||||
/// Дополнительный цвет (для опциональных элементов)
|
||||
/// </summary>
|
||||
//public Color AdditionalColor { get; private set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Признак (опция) наличия крана
|
||||
/// </summary>
|
||||
//public bool Crane { get; private set; }
|
||||
/// <summary>
|
||||
/// Признак (опция) наличия контейнеров
|
||||
/// </summary>
|
||||
//public bool Conteiners { get; private set; }
|
||||
|
||||
public double Step => (double)Speed * 100 / Weight;
|
||||
public EntityShip(int speed, double weight, Color bodyColor)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user