Добавление нового свойства класса DrawningBoat
This commit is contained in:
parent
4ff5df5cf5
commit
ef542b664e
@ -5,6 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Sailboat.Entities;
|
||||
using Sailboat.MovementStrategy;
|
||||
|
||||
namespace Sailboat.DrawingObjects
|
||||
{
|
||||
@ -13,58 +14,20 @@ namespace Sailboat.DrawingObjects
|
||||
/// </summary>
|
||||
public class DrawingBoat
|
||||
{
|
||||
/// <summary>
|
||||
/// Класс-сущность
|
||||
/// </summary>
|
||||
public EntityBoat? EntityBoat { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ширина окна
|
||||
/// </summary>
|
||||
private int _pictureWidth;
|
||||
|
||||
/// <summary>
|
||||
/// Высота окна
|
||||
/// </summary>
|
||||
private int _pictureHeight;
|
||||
|
||||
/// <summary>
|
||||
/// Левая координата прорисовки лодки
|
||||
/// </summary>
|
||||
protected int _startPosX;
|
||||
|
||||
/// <summary>
|
||||
/// Верхняя кооридната прорисовки лодки
|
||||
/// </summary>
|
||||
protected int _startPosY;
|
||||
|
||||
/// <summary>
|
||||
/// Верхняя кооридната прорисовки лодки
|
||||
/// </summary>
|
||||
private readonly int _boatWidth = 185;
|
||||
|
||||
/// <summary>
|
||||
/// Высота прорисовки лодки
|
||||
/// </summary>
|
||||
private readonly int _boatHeight = 160;
|
||||
|
||||
/// <summary>
|
||||
/// Координата X объекта
|
||||
/// </summary>
|
||||
public int GetPosX => _startPosX;
|
||||
/// <summary>
|
||||
/// Координата Y объекта
|
||||
/// </summary>
|
||||
public int GetPosY => _startPosY;
|
||||
/// <summary>
|
||||
/// Ширина объекта
|
||||
/// </summary>
|
||||
public int GetWidth => _boatWidth;
|
||||
/// <summary>
|
||||
/// Высота объекта
|
||||
/// </summary>
|
||||
public int GetHeight => _boatHeight;
|
||||
|
||||
public IMoveableObject GetMoveableObject => new DrawingObjectBoat(this);
|
||||
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user