diff --git a/WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs b/WarmlyShip/WarmlyShip/DrawningShip.cs
similarity index 95%
rename from WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs
rename to WarmlyShip/WarmlyShip/DrawningShip.cs
index 29e8eb8..591ed2f 100644
--- a/WarmlyShip/WarmlyShip/DrawningWarmlyShip.cs
+++ b/WarmlyShip/WarmlyShip/DrawningShip.cs
@@ -1,11 +1,11 @@
namespace WarmlyShip
{
- internal class DrawningWarmlyShip
+ internal class DrawningShip
{
///
/// Класс-сущность
///
- public EntityWarmlyShip Ship { get; private set; }
+ public EntityShip Ship { get; private set; }
///
/// Левая координата отрисовки коробля
///
@@ -38,7 +38,7 @@
/// Цвет основной части
public void Init(int speed, float weight, Color bodyColor)
{
- Ship = new EntityWarmlyShip();
+ Ship = new EntityShip();
Ship.Init(speed, weight, bodyColor);
}
///
@@ -133,11 +133,11 @@
g.FillPolygon(br, P);
Brush brBlue = new SolidBrush(Color.LightBlue);
- g.FillRectangle(brBlue, _startPosX + 70, _startPosY + 1, 70, 34);
+ g.FillRectangle(brBlue, _startPosX + 50, _startPosY + 1, 100, 34);
Pen pen = new(Color.Black);
//границы коробля
- g.DrawRectangle(pen, _startPosX + 70, _startPosY + 1 , 70, 34);
+ g.DrawRectangle(pen, _startPosX + 50, _startPosY + 1 , 100, 34);
g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 170, _startPosY + 35);
g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 50, _startPosY + 65);
g.DrawLine(pen, _startPosX + 50, _startPosY + 65, _startPosX + 150, _startPosY + 65);
diff --git a/WarmlyShip/WarmlyShip/EntityWarmlyShip.cs b/WarmlyShip/WarmlyShip/EntityShip.cs
similarity index 97%
rename from WarmlyShip/WarmlyShip/EntityWarmlyShip.cs
rename to WarmlyShip/WarmlyShip/EntityShip.cs
index 236dd56..8d865cf 100644
--- a/WarmlyShip/WarmlyShip/EntityWarmlyShip.cs
+++ b/WarmlyShip/WarmlyShip/EntityShip.cs
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace WarmlyShip
{
- internal class EntityWarmlyShip
+ internal class EntityShip
{
///
/// Скорость
diff --git a/WarmlyShip/WarmlyShip/FormShip.cs b/WarmlyShip/WarmlyShip/FormShip.cs
index 14b3681..886572f 100644
--- a/WarmlyShip/WarmlyShip/FormShip.cs
+++ b/WarmlyShip/WarmlyShip/FormShip.cs
@@ -2,7 +2,7 @@ namespace WarmlyShip
{
public partial class FormShip : Form
{
- private DrawningWarmlyShip _ship;
+ private DrawningShip _ship;
public FormShip()
{
InitializeComponent();
@@ -22,7 +22,7 @@ namespace WarmlyShip
private void buttonCreate_Click(object sender, EventArgs e)
{
Random rnd = new();
- _ship = new DrawningWarmlyShip();
+ _ship = new DrawningShip();
_ship.Init(rnd.Next(100, 300), rnd.Next(1000, 2000), Color.FromArgb(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256)));
_ship.SetPosition(rnd.Next(10, 100), rnd.Next(10, 100), pictureBoxShip.Width, pictureBoxShip.Height);
toolStripStatusLabelSpeed.Text = $": {_ship.Ship.Speed}";
diff --git a/WarmlyShip/WarmlyShip/Properties/launchSettings.json b/WarmlyShip/WarmlyShip/Properties/launchSettings.json
new file mode 100644
index 0000000..cff298c
--- /dev/null
+++ b/WarmlyShip/WarmlyShip/Properties/launchSettings.json
@@ -0,0 +1,7 @@
+{
+ "profiles": {
+ "WarmlyShip": {
+ "commandName": "Project"
+ }
+ }
+}
\ No newline at end of file