ISEbd21 Zinovev V.V. Lab Work 08 #21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "TankBasicLabEighth"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Зачтено с понижением балла(ов)
@ -0,0 +23,4 @@
{
return x.EntityArmoredTransport.BodyColor.GetBrightness().CompareTo(y.EntityArmoredTransport.BodyColor.GetBrightness());
}
if (x.GetType().Name != y.GetType().Name)
Требовалось сортировать по критериям: цвет, скорость, вес
@ -0,0 +17,4 @@
}
public bool Equals(ArmoredTransportsCollectionInfo? other)
{
return this.Name == other.Name;
Нет проверки, что other не равен null
@ -0,0 +41,4 @@
if (x is DrawningTank && y is DrawningTank)
{
EntityTank EntityX = (EntityTank)x.EntityArmoredTransport;
EntityTank EntityY = (EntityTank)y.EntityArmoredTransport;
Нет сравнения по дополнительному цвету
Pull request closed