ISEbd-21 Melnikov I. O. Lab work 08 Base #11
@ -61,12 +61,12 @@
|
||||
public (int Top, int Bottom, int Left, int Right) GetObjectCoordinates()
|
||||
{
|
||||
return
|
||||
(
|
||||
(int)(_drawningObject.GetCurrentPosition().Top / _size_y),
|
||||
(int)(_drawningObject.GetCurrentPosition().Bottom / _size_y),
|
||||
(int)(_drawningObject.GetCurrentPosition().Left / _size_x),
|
||||
(int)(_drawningObject.GetCurrentPosition().Right / _size_x)
|
||||
);
|
||||
(
|
||||
(int)(_drawningObject.GetCurrentPosition().Top / _size_y),
|
||||
(int)(_drawningObject.GetCurrentPosition().Bottom / _size_y),
|
||||
(int)(_drawningObject.GetCurrentPosition().Left / _size_x),
|
||||
(int)(_drawningObject.GetCurrentPosition().Right / _size_x)
|
||||
);
|
||||
}
|
||||
/// <summary>
|
||||
/// Проверка возможности движения в данном направлении
|
||||
|
Loading…
Reference in New Issue
Block a user