Чистка пустых строк

This commit is contained in:
grishazagidulin 2024-03-04 13:13:28 +04:00
parent fea88d309c
commit 5189f14b0e
12 changed files with 12 additions and 18 deletions

View File

@ -11,4 +11,4 @@ public enum DirectionType
Down = 2,//Вниз
Right = 3,//Вправо
Left = 4 //Влево
}
}

View File

@ -13,7 +13,7 @@ public class DrawningBattleship : DrawningShip
/// Конструктор
/// </summary>
/// <param name="entityBattleship">объект класса-сущности</param>
public DrawningBattleship(EntityBattleship entityBattleship)
public DrawningBattleship(EntityBattleship entityBattleship) : base(143, 75)
{
EntityShip = entityBattleship;
}

View File

@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Battleship.Drawnings;
public class DrawningShip
{
@ -145,5 +144,4 @@ public class DrawningShip
g.FillRectangle(brBlack, _startX.Value, _startY.Value + 35, 3, 15);
#endregion
}
}
}

View File

@ -4,7 +4,6 @@ using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace Battleship.Entities;
/// <summary>
/// Класс-сущность "Корабль"
@ -26,5 +25,4 @@ public class EntityShip
Weight = weight;
BodyColor = bodycolor;
}
}
}

View File

@ -100,4 +100,4 @@ public abstract class AbstractStrategy
return false;
return _moveableObject?.TryMoveObject(movementDirection) ?? false;
}
}
}

View File

@ -23,4 +23,4 @@ public interface IMoveableObject
/// <param name="direction">Направление</param>
/// <returns>true - успех перемещения, false - неудача перемещения</returns>
bool TryMoveObject(MovementDirection direction);
}
}

View File

@ -34,4 +34,4 @@ public class MoveToBorder : AbstractStrategy
MoveDown();
}
}
}
}

View File

@ -37,4 +37,4 @@ public class MoveToCenter : AbstractStrategy
MoveDown();
}
}
}
}

View File

@ -51,4 +51,4 @@ public class MoveableShip : IMoveableObject
_ => DirectionType.Unknown,
};
}
}
}

View File

@ -25,4 +25,4 @@ public enum MovementDirection
/// Влево
/// </summary>
Left = 4
}
}

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Battleship.MovementStrategy;
/// <summary>
/// Параметры-координаты объекта
@ -34,4 +33,4 @@ public class ObjectParameters
_width = width;
_height = height;
}
}
}

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Battleship.MovementStrategy;
/// <summary>
/// Статус выполнения операции пермещения
@ -22,4 +21,4 @@ public enum StrategyStatus
/// Выполнено
/// </summary>
Finish
}
}