ввпчя
This commit is contained in:
commit
437d7894e2
@ -156,7 +156,6 @@ namespace Lab1ContainersShip.DrawingObjects
|
|||||||
}
|
}
|
||||||
Pen pen = new Pen(Color.Black);
|
Pen pen = new Pen(Color.Black);
|
||||||
|
|
||||||
Brush brBlue = new SolidBrush(Color.Blue);
|
|
||||||
Brush brBody = new SolidBrush(EntityShip.BodyColor);
|
Brush brBody = new SolidBrush(EntityShip.BodyColor);
|
||||||
// заполнение борта
|
// заполнение борта
|
||||||
g.FillPolygon(brBody, new PointF[]
|
g.FillPolygon(brBody, new PointF[]
|
||||||
|
@ -32,5 +32,6 @@ namespace Lab1ContainersShip.MovementStrategy
|
|||||||
_drawingShip?.CanMove(direction) ?? false;
|
_drawingShip?.CanMove(direction) ?? false;
|
||||||
public void MoveObject(Direction direction) =>
|
public void MoveObject(Direction direction) =>
|
||||||
_drawingShip?.MoveTransport(direction);
|
_drawingShip?.MoveTransport(direction);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,5 +32,6 @@ namespace Lab1ContainersShip.MovementStrategy
|
|||||||
/// <param name="direction">Направление</param>
|
/// <param name="direction">Направление</param>
|
||||||
void MoveObject(Direction direction);
|
void MoveObject(Direction direction);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user