ISEbd-21 Melnikov I. O. Lab work 08 Base #11

Closed
Igor-Melnikov wants to merge 7 commits from LabWork08 into LabWork07
2 changed files with 10 additions and 10 deletions
Showing only changes of commit 950258932e - Show all commits

View File

@ -60,13 +60,13 @@
/// <returns></returns>
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)
);
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)
);
}
/// <summary>
/// Проверка возможности движения в данном направлении

View File

@ -1,8 +1,8 @@
namespace Locomotives
{
/// <summary>
/// Класс-наследник от интерфейса (реализация)
/// </summary>
/// <summary>
/// Класс-наследник от интерфейса (реализация)
/// </summary>
internal class DrawningObjectLocomotive : IDrawningObject
{
/// <summary>