Mochalov D.V. LabWork06 #6
@ -26,7 +26,6 @@ namespace Locomotive
|
||||
{
|
||||
return _locomotive?.GetCurrentPosition() ?? default;
|
||||
}
|
||||
|
||||
public void MoveObject(Direction direction)
|
||||
{
|
||||
_locomotive?.MoveTransport(direction);
|
||||
@ -37,5 +36,8 @@ namespace Locomotive
|
||||
_locomotive?.SetPosition(x, y, width, height);
|
||||
}
|
||||
|
||||
public string getInfo() => _locomotive?.getDataForSave();
|
||||
|
||||
public static IDrawningObject Create(string data) => new DrawningObjectLocomotive(data.createDrawningLocomotive());
|
||||
}
|
||||
}
|
||||
|
@ -19,5 +19,7 @@ namespace Locomotive
|
||||
/// Получение текущей позиции объекта
|
||||
(float Left, float Right, float Top, float Bottom) GetCurrentPosition();
|
||||
|
||||
// Получение информации по объекту
|
||||
string getInfo();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user