Полностью готовая
This commit is contained in:
parent
9a8bafa283
commit
c3b6d7169e
@ -38,7 +38,6 @@ namespace AircraftCarrier
|
|||||||
}
|
}
|
||||||
(float Left, float Right, float Top, float Bottom) = _drawingObject.GetCurrentPosition();
|
(float Left, float Right, float Top, float Bottom) = _drawingObject.GetCurrentPosition();
|
||||||
|
|
||||||
|
|
||||||
if (Check(Left, Right, Top, Bottom) != 0)
|
if (Check(Left, Right, Top, Bottom) != 0)
|
||||||
{
|
{
|
||||||
_drawingObject.MoveObject(GetOpositDirection(direction));
|
_drawingObject.MoveObject(GetOpositDirection(direction));
|
||||||
|
@ -207,6 +207,5 @@ namespace AircraftCarrier
|
|||||||
{
|
{
|
||||||
return (_startPosX, _startPosY, _startPosX + _warshipWidth, _startPosY + _warshipHeight);
|
return (_startPosX, _startPosY, _startPosX + _warshipWidth, _startPosY + _warshipHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,5 @@ namespace AircraftCarrier
|
|||||||
Weight = weight <= 0 ? rnd.Next(40, 70) : weight;
|
Weight = weight <= 0 ? rnd.Next(40, 70) : weight;
|
||||||
BodyColor = bodyColor;
|
BodyColor = bodyColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,5 @@ namespace AircraftCarrier
|
|||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user