Осталось переопределить + и - (тз не чёткое)
This commit is contained in:
parent
bbb8274ca8
commit
adc8149b7e
@ -67,7 +67,7 @@ namespace SelfPropelledArtilleryUnit
|
||||
}
|
||||
_drawningSPAU = new DrawningSPAUchild(random.Next(100, 300),
|
||||
random.Next(1000, 3000), color,
|
||||
dopColor, Convert.ToBoolean(random.Next(0, 2)),
|
||||
dopColor, true,
|
||||
pictureBoxSPAU.Width, pictureBoxSPAU.Height);
|
||||
_drawningSPAU.SetPosition(random.Next(10, 100), random.Next(10,
|
||||
100));
|
||||
|
@ -79,8 +79,7 @@ namespace SelfPropelledArtilleryUnit
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void ButtonRefreshCollection_Click(object sender, EventArgs
|
||||
e)
|
||||
private void ButtonRefreshCollection_Click(object sender, EventArgs e)
|
||||
{
|
||||
pictureBoxCollection.Image = _SPAUs.ShowSPAUs();
|
||||
}
|
||||
|
@ -110,9 +110,9 @@ namespace SelfPropelledArtilleryUnit.Generics
|
||||
Pen pen = new(Color.Black, 3);
|
||||
for (int i = 0; i < _pictureWidth / _placeSizeWidth; i++)
|
||||
{
|
||||
for (int j = 0; j < _pictureHeight / _placeSizeHeight +
|
||||
1; ++j)
|
||||
{//линия рамзетки места
|
||||
for (int j = 0; j < _pictureHeight / _placeSizeHeight + 1; ++j)
|
||||
{
|
||||
//линия рамзетки места
|
||||
g.DrawLine(pen, i * _placeSizeWidth, j *
|
||||
_placeSizeHeight, i * _placeSizeWidth + _placeSizeWidth / 2, j *
|
||||
_placeSizeHeight);
|
||||
@ -133,18 +133,14 @@ namespace SelfPropelledArtilleryUnit.Generics
|
||||
for (int i = 0; i < _collection.Count; i++)
|
||||
{
|
||||
current = _collection.Get(i);
|
||||
current?.SetPosition(stringCount * 200, 250 - j * 50);
|
||||
current?.SetPosition(stringCount * 200, 280 - j * 100);
|
||||
stringCount++;
|
||||
if (stringCount >= 3)
|
||||
{
|
||||
j++;
|
||||
stringCount = 0;
|
||||
}
|
||||
|
||||
current?.DrawTransport(g);
|
||||
// TODO получение объекта
|
||||
// TODO установка позиции
|
||||
// TODO прорисовка объекта
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user