Лабораторная работа №2
This commit is contained in:
parent
d215fc5864
commit
566b1a4dac
@ -28,6 +28,8 @@ public class DrawningAirFighter : DrawningWarPlane
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public override void DrawTransport(Graphics g)
|
public override void DrawTransport(Graphics g)
|
||||||
{
|
{
|
||||||
if (EntityWarPlane == null || EntityWarPlane is not EntityAirFighter warPlane||!_startPosX.HasValue || !_startPosY.HasValue)
|
if (EntityWarPlane == null || EntityWarPlane is not EntityAirFighter warPlane||!_startPosX.HasValue || !_startPosY.HasValue)
|
||||||
|
@ -174,7 +174,7 @@ public class DrawningWarPlane
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="direction">Направление</param>
|
/// <param name="direction">Направление</param>
|
||||||
/// <returns>true - перемещение выполнено, false - перемещение невозможно </returns>
|
/// <returns>true - перемещение выполнено, false - перемещение невозможно </returns>
|
||||||
public bool MoveTransport(DirectionType direction)
|
public virtual bool MoveTransport(DirectionType direction)
|
||||||
{
|
{
|
||||||
if (EntityWarPlane == null || !_startPosX.HasValue || !_startPosY.HasValue)
|
if (EntityWarPlane == null || !_startPosX.HasValue || !_startPosY.HasValue)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user