PIBD-14_Arinina_M.A._Simple_LabWork02 #14

Closed
mara-1 wants to merge 5 commits from LabWork02 into LabWork01
Showing only changes of commit 777a09e683 - Show all commits

View File

@ -25,6 +25,8 @@ public class DrawningBulldozer : DrawningBulldozerProstoy
EntityBulldozerProstoy = new EntityBulldozer(speed, weight, bodyColor, additionalColor, additionalOtval,
additionalRihl);
}
public override void DrawTransport(Graphics g)
{
if (EntityBulldozerProstoy == null || EntityBulldozerProstoy is not EntityBulldozer Bulldozer || !_startPosX.HasValue || !_startPosY.HasValue)
@ -37,14 +39,12 @@ public class DrawningBulldozer : DrawningBulldozerProstoy
Brush bodyBrush2 = new SolidBrush(Bulldozer.AdditionalColor);
_startPosX += 10;
_startPosY += 5;
base.DrawTransport(g);
_startPosX -= 10;
_startPosY -= 5;
Brush bl = new SolidBrush(Bulldozer.AdditionalColor);
/////////отвал