diff --git a/ProjectStormtrooper/CollectionGenericObjects/AbstractCompany.cs b/ProjectStormtrooper/CollectionGenericObjects/AbstractCompany.cs
index 6fc6785..27ff7f5 100644
--- a/ProjectStormtrooper/CollectionGenericObjects/AbstractCompany.cs
+++ b/ProjectStormtrooper/CollectionGenericObjects/AbstractCompany.cs
@@ -2,7 +2,7 @@
namespace ProjectStormtrooper.CollectionGenericObjects;
///
-/// Абстракция компании, хранящий коллекцию бомбардировщиков
+/// Абстракция компании, хранящий коллекцию штурмовика
///
public abstract class AbstractCompany
{
@@ -35,7 +35,7 @@ public abstract class AbstractCompany
///
/// Ширина окна
/// Высота окна
- /// Коллекция бомбардировщиков
+ /// Коллекция штурмовика
public AbstractCompany(int picWidth, int picHeight, ICollectionGenericObjects collection)
{
_pictureWidth = picWidth;
diff --git a/ProjectStormtrooper/CollectionGenericObjects/StormtrooperSharingService.cs b/ProjectStormtrooper/CollectionGenericObjects/StormtrooperSharingService.cs
index 652c2ca..4fed574 100644
--- a/ProjectStormtrooper/CollectionGenericObjects/StormtrooperSharingService.cs
+++ b/ProjectStormtrooper/CollectionGenericObjects/StormtrooperSharingService.cs
@@ -6,13 +6,19 @@ using System.Text;
using System.Threading.Tasks;
namespace ProjectStormtrooper.CollectionGenericObjects;
+///
+/// Реализация абстрактной компании
+///
public class StormtrooperSharingService : AbstractCompany
{
public StormtrooperSharingService(int picWidth, int picHeight, ICollectionGenericObjects collection) : base(picWidth, picHeight, collection)
{
}
-
+ ///
+ /// Вывод заднего фона
+ ///
+ ///
protected override void DrawBackgound(Graphics g)
{
int width = _pictureWidth / _placeSizeWidth;
@@ -27,7 +33,9 @@ public class StormtrooperSharingService : AbstractCompany
}
}
}
-
+ ///
+ /// Расстановка объектов
+ ///
protected override void SetObjectsPosition()
{
int width = _pictureWidth / _placeSizeWidth;
diff --git a/ProjectStormtrooper/FormStormtrooperCollection.cs b/ProjectStormtrooper/FormStormtrooperCollection.cs
index 067d8be..5d99278 100644
--- a/ProjectStormtrooper/FormStormtrooperCollection.cs
+++ b/ProjectStormtrooper/FormStormtrooperCollection.cs
@@ -60,8 +60,8 @@ public partial class FormStormtrooperCollection : Form
{
case nameof(DrawingStormtrooper):
drawningStormtrooperBase = new DrawingStormtrooper(random.Next(100, 300), random.Next(1000, 3000),
- Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
- Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
+ GetColor(random),
+ GetColor(random),
Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)));
break;
case nameof(DrawningStormtrooperBase):