Готовая четвертая лабораторная работа.
This commit is contained in:
parent
384dd9b1ff
commit
c1fd43d876
@ -27,7 +27,6 @@ namespace AirplaneWithRadar
|
|||||||
{
|
{
|
||||||
g.FillRectangle(roadColor, i * _size_x, j * _size_y, (i + 1) * (_size_x + 1), (j + 1) * (_size_y + 1));
|
g.FillRectangle(roadColor, i * _size_x, j * _size_y, (i + 1) * (_size_x + 1), (j + 1) * (_size_y + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void GenerateMap()
|
protected override void GenerateMap()
|
||||||
{
|
{
|
||||||
_map = new int[100, 100];
|
_map = new int[100, 100];
|
||||||
|
@ -57,8 +57,7 @@ namespace AirplaneWithRadar
|
|||||||
/// <param name="bodyColor">Цвет кузова</param>
|
/// <param name="bodyColor">Цвет кузова</param>
|
||||||
/// <param name="airplaneWidth">Ширина отрисовки самолета</param>
|
/// <param name="airplaneWidth">Ширина отрисовки самолета</param>
|
||||||
/// <param name="airplaneHeight">Высота отрисовки самолета</param>
|
/// <param name="airplaneHeight">Высота отрисовки самолета</param>
|
||||||
protected DrawingAirplane(int speed, float weight, Color bodyColor, int airplaneWidth, int airplaneHeight) :
|
protected DrawingAirplane(int speed, float weight, Color bodyColor, int airplaneWidth, int airplaneHeight) : this(speed, weight, bodyColor)
|
||||||
this(speed, weight, bodyColor)
|
|
||||||
{
|
{
|
||||||
_airplaneWidth = airplaneWidth;
|
_airplaneWidth = airplaneWidth;
|
||||||
_airplaneHeight = airplaneHeight;
|
_airplaneHeight = airplaneHeight;
|
||||||
|
@ -48,7 +48,11 @@ namespace AirplaneWithRadar
|
|||||||
SetData();
|
SetData();
|
||||||
Draw();
|
Draw();
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Ïåðåìåùåíèå
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
private void ButtonMove_Click(object sender, EventArgs e)
|
private void ButtonMove_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string name = ((Button)sender)?.Name ?? string.Empty;
|
string name = ((Button)sender)?.Name ?? string.Empty;
|
||||||
|
Loading…
Reference in New Issue
Block a user