Лабораторная работа №2
This commit is contained in:
parent
bd1882b5cf
commit
02957d58e4
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user