последние изменения

This commit is contained in:
AnnaLioness 2023-10-20 17:22:41 +04:00
parent 72b2d823c7
commit 811e02b7bd
2 changed files with 4 additions and 6 deletions

View File

@ -149,8 +149,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);
// заполнение борта
g.FillPolygon(brBody, new PointF[]

View File

@ -24,17 +24,16 @@ namespace Lab1ContainersShip.Entities
/// <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)
{