LabWork02 #3
@ -38,7 +38,6 @@ namespace AircraftCarrier
|
||||
}
|
||||
(float Left, float Right, float Top, float Bottom) = _drawingObject.GetCurrentPosition();
|
||||
|
||||
|
||||
if (Check(Left, Right, Top, Bottom) != 0)
|
||||
{
|
||||
_drawingObject.MoveObject(GetOpositDirection(direction));
|
||||
|
@ -207,6 +207,5 @@ namespace AircraftCarrier
|
||||
{
|
||||
return (_startPosX, _startPosY, _startPosX + _warshipWidth, _startPosY + _warshipHeight);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,5 @@ namespace AircraftCarrier
|
||||
Weight = weight <= 0 ? rnd.Next(40, 70) : weight;
|
||||
BodyColor = bodyColor;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +59,5 @@ namespace AircraftCarrier
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user