лаб - 4
This commit is contained in:
parent
b0b97b53e0
commit
75fa75b3eb
@ -38,7 +38,6 @@ namespace AircraftCarrier
|
|||||||
int yNumOfCells;
|
int yNumOfCells;
|
||||||
int xObjOffset;
|
int xObjOffset;
|
||||||
int yObjOffset;
|
int yObjOffset;
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
{
|
{
|
||||||
case Direction.Up:
|
case Direction.Up:
|
||||||
@ -149,6 +148,7 @@ namespace AircraftCarrier
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (roadIsClear)
|
if (roadIsClear)
|
||||||
{
|
{
|
||||||
_drawningObject.MoveObject(direction);
|
_drawningObject.MoveObject(direction);
|
||||||
|
@ -35,7 +35,6 @@ namespace AircraftCarrier
|
|||||||
// <summary>
|
// <summary>
|
||||||
/// Ширина отрисовки самолета
|
/// Ширина отрисовки самолета
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
protected readonly int _aircraftcarrierWidth = 230;
|
protected readonly int _aircraftcarrierWidth = 230;
|
||||||
protected readonly int _aircraftcarrierHeight = 80;
|
protected readonly int _aircraftcarrierHeight = 80;
|
||||||
public DrawningAircraftCarrier(int speed, float weight, Color bodyColor)
|
public DrawningAircraftCarrier(int speed, float weight, Color bodyColor)
|
||||||
@ -53,6 +52,7 @@ namespace AircraftCarrier
|
|||||||
{
|
{
|
||||||
_startPosX = x;
|
_startPosX = x;
|
||||||
_startPosY = y;
|
_startPosY = y;
|
||||||
|
|
||||||
_pictureWidth = width;
|
_pictureWidth = width;
|
||||||
_pictureHeigth = height;
|
_pictureHeigth = height;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user