Компания

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;
/// <summary>
/// Коллекция поездов
/// Коллекция самолётов
/// </summary>
protected ICollectionGenericObjects<DrawningBomber>? _collection = null;

View File

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

View File

@ -5,6 +5,9 @@
/// </summary>
public enum DirectionType
{
/// <summary>
/// Неизвестное направление
/// </summary>
Unknow = -1,
/// <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)
{
EntityBomber = new EntityAirBomber(speed, weight, bodyColor, additionalColor, fuelTanks, bombs);

View File

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

View File

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

View File

@ -1,6 +1,10 @@

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

View File

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