Компания
This commit is contained in:
parent
81fa7e8de7
commit
f2bfec6818
@ -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;
|
||||||
|
|
||||||
|
@ -40,7 +40,9 @@ public class BomberHungarService : AbstractCompany
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Установка объекта в Ангар
|
||||||
|
/// </summary>
|
||||||
protected override void SetObjectsPosition()
|
protected override void SetObjectsPosition()
|
||||||
{
|
{
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public enum DirectionType
|
public enum DirectionType
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Неизвестное направление
|
||||||
|
/// </summary>
|
||||||
Unknow = -1,
|
Unknow = -1,
|
||||||
/// <summary>
|
/// <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)
|
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);
|
||||||
|
@ -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;
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user