Форматирование кода
This commit is contained in:
parent
379eabc701
commit
c8cd888bf1
@ -23,7 +23,6 @@ namespace AirBomber
|
|||||||
/// <param name="height">Высота картинки</param>
|
/// <param name="height">Высота картинки</param>
|
||||||
public DrawningAirBomber(int speed, double weight, Color bodyColor, Color
|
public DrawningAirBomber(int speed, double weight, Color bodyColor, Color
|
||||||
additionalColor, bool bombs, Color bombsColor, bool fuelTanks, int width, int height) :
|
additionalColor, bool bombs, Color bombsColor, bool fuelTanks, int width, int height) :
|
||||||
|
|
||||||
base(speed, weight, bodyColor, width, height, 160, 118)
|
base(speed, weight, bodyColor, width, height, 160, 118)
|
||||||
{
|
{
|
||||||
if (EntityAirPlane != null)
|
if (EntityAirPlane != null)
|
||||||
@ -53,7 +52,6 @@ namespace AirBomber
|
|||||||
g.DrawRectangle(pen, _startPosX + 63, _startPosY + 34, 20, 15);
|
g.DrawRectangle(pen, _startPosX + 63, _startPosY + 34, 20, 15);
|
||||||
g.FillRectangle(additionalBrush, _startPosX + 63, _startPosY + 70, 20, 15);
|
g.FillRectangle(additionalBrush, _startPosX + 63, _startPosY + 70, 20, 15);
|
||||||
g.DrawRectangle(pen, _startPosX + 63, _startPosY + 70, 20, 15);
|
g.DrawRectangle(pen, _startPosX + 63, _startPosY + 70, 20, 15);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,10 @@ namespace AirBomber
|
|||||||
width, int height)
|
width, int height)
|
||||||
{
|
{
|
||||||
// TODO: Продумать проверки
|
// TODO: Продумать проверки
|
||||||
|
if (width < _airPlaneWidth || height < _airPlaneHeight)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
_pictureWidth = width;
|
_pictureWidth = width;
|
||||||
_pictureHeight = height;
|
_pictureHeight = height;
|
||||||
EntityAirPlane = new EntityAirPlane(speed, weight, bodyColor);
|
EntityAirPlane = new EntityAirPlane(speed, weight, bodyColor);
|
||||||
|
@ -37,6 +37,5 @@ namespace AirBomber
|
|||||||
Weight = weight;
|
Weight = weight;
|
||||||
BodyColor = bodyColor;
|
BodyColor = bodyColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ namespace AirBomber
|
|||||||
|
|
||||||
return objParams.RightBorder >= FieldWidth - GetStep() && objParams.DownBorder >= FieldHeight - GetStep();
|
return objParams.RightBorder >= FieldWidth - GetStep() && objParams.DownBorder >= FieldHeight - GetStep();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void MoveToTarget()
|
protected override void MoveToTarget()
|
||||||
{
|
{
|
||||||
var objParams = GetObjectParameters;
|
var objParams = GetObjectParameters;
|
||||||
|
@ -7,7 +7,6 @@ namespace AirBomber
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main()
|
static void Main()
|
||||||
|
|
||||||
{
|
{
|
||||||
// To customize application configuration such as set high DPI settings or default font,
|
// To customize application configuration such as set high DPI settings or default font,
|
||||||
// see https://aka.ms/applicationconfiguration.
|
// see https://aka.ms/applicationconfiguration.
|
||||||
|
Loading…
Reference in New Issue
Block a user