Youdakova D.R. PIbd-21 LabWork04 #4

Closed
Daniya_Youdakova wants to merge 4 commits from LabWork04 into LabWork03
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 75fa75b3eb - Show all commits

View File

@ -38,7 +38,6 @@ namespace AircraftCarrier
int yNumOfCells;
int xObjOffset;
int yObjOffset;
switch (direction)
{
case Direction.Up:
@ -149,6 +148,7 @@ namespace AircraftCarrier
}
break;
}
if (roadIsClear)
{
_drawningObject.MoveObject(direction);

View File

@ -35,7 +35,6 @@ namespace AircraftCarrier
// <summary>
/// Ширина отрисовки самолета
/// </summary>
protected readonly int _aircraftcarrierWidth = 230;
protected readonly int _aircraftcarrierHeight = 80;
public DrawningAircraftCarrier(int speed, float weight, Color bodyColor)
@ -53,6 +52,7 @@ namespace AircraftCarrier
{
_startPosX = x;
_startPosY = y;
_pictureWidth = width;
_pictureHeigth = height;
}