PIbd-21 Belianin N.N. LabWork01 #1

Closed
Belnik wants to merge 2 commits from LabWork01 into main
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 72a71f346b - Show all commits

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Tank
{
internal class DrawingTank
public class DrawingTank
{
public EntityTank Tank { get; set; }
private int _startPosX;
@ -83,10 +83,12 @@ namespace Tank
}
Pen pen = new(Color.Black);
// Отрисовка танковых катков
Brush BrushBlack = new SolidBrush(Color.Black);
g.FillEllipse(BrushBlack, _startPosX + 113, _startPosY + 41, 11, 11);
g.FillEllipse(BrushBlack, _startPosX + 13, _startPosY + 40, 11, 11);
// Гусеница
Brush BrushGray = new SolidBrush(Color.DarkGray);
g.DrawEllipse(pen, _startPosX + 10, _startPosY + 30, 120, 30);

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Tank
{
internal class EntityTank
public class EntityTank
{
public int Speed { get; private set; }
public float Weight { get; private set; }