Компания
This commit is contained in:
parent
81fa7e8de7
commit
f2bfec6818
@ -28,7 +28,7 @@ public abstract class AbstractCompany
|
||||
protected readonly int _pictureHeight;
|
||||
|
||||
/// <summary>
|
||||
/// Коллекция поездов
|
||||
/// Коллекция самолётов
|
||||
/// </summary>
|
||||
protected ICollectionGenericObjects<DrawningBomber>? _collection = null;
|
||||
|
||||
|
@ -40,7 +40,9 @@ public class BomberHungarService : AbstractCompany
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Установка объекта в Ангар
|
||||
/// </summary>
|
||||
protected override void SetObjectsPosition()
|
||||
{
|
||||
int n = 0;
|
||||
|
@ -5,6 +5,9 @@
|
||||
/// </summary>
|
||||
public enum DirectionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Неизвестное направление
|
||||
/// </summary>
|
||||
Unknow = -1,
|
||||
/// <summary>
|
||||
/// Вверх
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
namespace ProjectAirBomber.MovementStrategy;
|
||||
|
||||
/// <summary>
|
||||
/// Стратегия перемещения объекта в край экрана
|
||||
/// </summary>
|
||||
public class MoveToBorder : AbstractStrategy
|
||||
{
|
||||
protected override bool IsTargetDestinaion()
|
||||
|
@ -1,6 +1,10 @@
|
||||
|
||||
namespace ProjectAirBomber.MovementStrategy;
|
||||
|
||||
/// <summary>
|
||||
/// Стратегия перемещения объекта в центр экрана
|
||||
/// </summary>
|
||||
|
||||
public class MoveToCenter : AbstractStrategy
|
||||
{
|
||||
protected override bool IsTargetDestinaion()
|
||||
|
@ -5,7 +5,7 @@ namespace ProjectAirBomber.MovementStrategy;
|
||||
public class MoveableBomber : IMoveableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Поле-объект класса DrawningTrans или его наследника
|
||||
/// Поле-объект класса DrawningBomber или его наследника
|
||||
/// </summary>
|
||||
private readonly DrawningBomber? _bomber = null;
|
||||
/// <summary>
|
Loading…
Reference in New Issue
Block a user