Pibd-13 Kadyshev M.I. LabWork02 Base #2

Closed
nezui wants to merge 4 commits from LabWork02 into LabWork01
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 566b1a4dac - Show all commits

View File

@ -28,6 +28,8 @@ public class DrawningAirFighter : DrawningWarPlane
}
public override void DrawTransport(Graphics g)
{
if (EntityWarPlane == null || EntityWarPlane is not EntityAirFighter warPlane||!_startPosX.HasValue || !_startPosY.HasValue)

View File

@ -174,7 +174,7 @@ public class DrawningWarPlane
/// </summary>
/// <param name="direction">Направление</param>
/// <returns>true - перемещение выполнено, false - перемещение невозможно </returns>
public bool MoveTransport(DirectionType direction)
public virtual bool MoveTransport(DirectionType direction)
{
if (EntityWarPlane == null || !_startPosX.HasValue || !_startPosY.HasValue)
{