2022-10-01 20:41:57 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Catamaran
|
|
|
|
|
{
|
|
|
|
|
internal interface IDrawingObject
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Шаг перемещения объекта
|
|
|
|
|
/// </summary>
|
|
|
|
|
float Step { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Установка позиции объекта
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="x">Координата X</param>
|
|
|
|
|
/// <param name="y">Координата Y</param>
|
|
|
|
|
/// <param name="width">Ширина полотна</param>
|
|
|
|
|
/// <param name="height">Высота полотна</param>
|
|
|
|
|
void SetObject(int x, int y, int width, int height);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Изменение направления пермещения объекта
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="direction">Направление</param>
|
|
|
|
|
void MoveObject(Direction direction);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Отрисовка объекта
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="g"></param>
|
|
|
|
|
void DrawingObject(Graphics g);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение текущей позиции объекта
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
(float Left, float Right, float Top, float Bottom)
|
|
|
|
|
GetCurrentPosition();
|
|
|
|
|
|
2022-11-20 20:46:00 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение информации по объекту
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
string GetInfo();
|
|
|
|
|
|
|
|
|
|
|
2022-10-01 20:41:57 +04:00
|
|
|
|
}
|
|
|
|
|
}
|