Лабораторная работа №2

This commit is contained in:
xom9kxom9k 2024-03-15 16:38:48 +04:00
parent bd1882b5cf
commit 02957d58e4
4 changed files with 140 additions and 155 deletions

View File

@ -1,9 +1,4 @@
using AntiAircraftGun.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AntiAircraftGun.Drawnings;
@ -200,7 +195,7 @@ public class DrawningAircraftGun
_startPosY += (int)EntityAircraftGun.Step;
}
return true;
case DirectionType.Up: //вверх
case DirectionType.Up:
if (_startPosY - EntityAircraftGun.Step > 0)
{
_startPosY -= (int)EntityAircraftGun.Step;
@ -264,7 +259,5 @@ public class DrawningAircraftGun
}
}

View File

@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AntiAircraftGun.Entities;
namespace AntiAircraftGun.Entities;
/// <summary>
/// Класс - сущность Бронированная машина
/// </summary>

View File

@ -28,7 +28,6 @@ public class EntityAntiAircraftGun : EntityAircraftGun
/// <param name="radar">Наличие радара</param>
public EntityAntiAircraftGun(int speed, double weight, Color bodyColor, bool radar, bool tower, Color additionalColor) : base(speed, weight, bodyColor)
{
Radar = radar;
Tower = tower;
AdditionalColor = additionalColor;

View File

@ -1,8 +1,8 @@
using AntiAircraftGun.Drawnings;
using AntiAircraftGun.MovementStrategy;
namespace AntiAircraftGun
{
namespace AntiAircraftGun;
public partial class FormAntiAircraftGun : Form
{
/// <summary>
@ -153,4 +153,3 @@ namespace AntiAircraftGun
}
}
}
}