Компания

This commit is contained in:
SAliulov 2024-04-20 21:12:03 +03:00
parent 81fa7e8de7
commit f2bfec6818
8 changed files with 17 additions and 5 deletions

View File

@ -28,7 +28,7 @@ public abstract class AbstractCompany
protected readonly int _pictureHeight; protected readonly int _pictureHeight;
/// <summary> /// <summary>
/// Коллекция поездов /// Коллекция самолётов
/// </summary> /// </summary>
protected ICollectionGenericObjects<DrawningBomber>? _collection = null; protected ICollectionGenericObjects<DrawningBomber>? _collection = null;

View File

@ -40,7 +40,9 @@ public class BomberHungarService : AbstractCompany
} }
/// <summary>
/// Установка объекта в Ангар
/// </summary>
protected override void SetObjectsPosition() protected override void SetObjectsPosition()
{ {
int n = 0; int n = 0;

View File

@ -5,6 +5,9 @@
/// </summary> /// </summary>
public enum DirectionType public enum DirectionType
{ {
/// <summary>
/// Неизвестное направление
/// </summary>
Unknow = -1, Unknow = -1,
/// <summary> /// <summary>
/// Вверх /// Вверх

View File

@ -21,7 +21,7 @@ public class DrawningAirBomber : DrawningBomber
//TO DO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //TO DO!
public DrawningAirBomber(int speed, double weight, Color bodyColor, Color additionalColor, bool fuelTanks, bool bombs) : base(200, 160) public DrawningAirBomber(int speed, double weight, Color bodyColor, Color additionalColor, bool fuelTanks, bool bombs) : base(200, 160)
{ {
EntityBomber = new EntityAirBomber(speed, weight, bodyColor, additionalColor, fuelTanks, bombs); EntityBomber = new EntityAirBomber(speed, weight, bodyColor, additionalColor, fuelTanks, bombs);

View File

@ -30,7 +30,7 @@ public class EntityBomber
/// <param name="weight">Вес бомбардировщика</param> /// <param name="weight">Вес бомбардировщика</param>
/// <param name="bodyColor">Основной цвет</param> /// <param name="bodyColor">Основной цвет</param>
/// ///
/// TO DO?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /// TO DO
public EntityBomber(int speed, double weight, Color bodyColor) public EntityBomber(int speed, double weight, Color bodyColor)
{ {
Speed = speed; Speed = speed;

View File

@ -2,6 +2,9 @@
namespace ProjectAirBomber.MovementStrategy; namespace ProjectAirBomber.MovementStrategy;
/// <summary>
/// Стратегия перемещения объекта в край экрана
/// </summary>
public class MoveToBorder : AbstractStrategy public class MoveToBorder : AbstractStrategy
{ {
protected override bool IsTargetDestinaion() protected override bool IsTargetDestinaion()

View File

@ -1,6 +1,10 @@
 
namespace ProjectAirBomber.MovementStrategy; namespace ProjectAirBomber.MovementStrategy;
/// <summary>
/// Стратегия перемещения объекта в центр экрана
/// </summary>
public class MoveToCenter : AbstractStrategy public class MoveToCenter : AbstractStrategy
{ {
protected override bool IsTargetDestinaion() protected override bool IsTargetDestinaion()

View File

@ -5,7 +5,7 @@ namespace ProjectAirBomber.MovementStrategy;
public class MoveableBomber : IMoveableObject public class MoveableBomber : IMoveableObject
{ {
/// <summary> /// <summary>
/// Поле-объект класса DrawningTrans или его наследника /// Поле-объект класса DrawningBomber или его наследника
/// </summary> /// </summary>
private readonly DrawningBomber? _bomber = null; private readonly DrawningBomber? _bomber = null;
/// <summary> /// <summary>