Самая готовая laba2
This commit is contained in:
parent
570494812c
commit
933f648c24
@ -31,6 +31,5 @@ namespace AircraftCarrier.MovementStrategy
|
||||
_drawningAircraft?.CanMove(direction) ?? false;
|
||||
public void MoveObject(Direction direction) =>
|
||||
_drawningAircraft?.MoveTransport(direction);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +18,5 @@ namespace AircraftCarrier.MovementStrategy
|
||||
/// Изменение направления пермещения объекта
|
||||
/// <param name="direction">Направление</param>
|
||||
void MoveObject(Direction direction);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AircraftCarrier.MovementStrategy
|
||||
{
|
||||
internal class MoveToBorder : AbstractStrategy
|
||||
@ -16,7 +15,6 @@ namespace AircraftCarrier.MovementStrategy
|
||||
|
||||
return objParams.RightBorder >= FieldWidth - GetStep() && objParams.DownBorder >= FieldHeight - GetStep();
|
||||
}
|
||||
|
||||
protected override void MoveToTarget()
|
||||
{
|
||||
var objParams = GetObjectParameters;
|
||||
|
@ -50,7 +50,6 @@ namespace AircraftCarrier.MovementStrategy
|
||||
MoveDown();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user