Фикс ошибок
This commit is contained in:
parent
63b5bc994b
commit
23663c6c47
@ -4,6 +4,7 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AirBomber;
|
||||
|
||||
namespace AirBomber
|
||||
{
|
||||
@ -16,9 +17,8 @@ namespace AirBomber
|
||||
/// <param name="weight">Вес</param>
|
||||
/// <param name="bodyColor">Основной цвет</param>
|
||||
/// <param name="additionalColor">Дополнительный цвет</param>
|
||||
/// <param name="bodyKit">Признак наличия обвеса</param>
|
||||
/// <param name="wing">Признак наличия антикрыла</param>
|
||||
/// <param name="sportLine">Признак наличия гоночной полосы</param>
|
||||
/// <param name="bombs">Признак наличия обвеса</param>
|
||||
/// <param name="fuelTanks">Признак наличия антикрыла</param>
|
||||
/// <param name="width">Ширина картинки</param>
|
||||
/// <param name="height">Высота картинки</param>
|
||||
public DrawningAirBomber(int speed, double weight, Color bodyColor, Color
|
||||
@ -28,17 +28,18 @@ namespace AirBomber
|
||||
{
|
||||
if (EntityAirPlane != null)
|
||||
{
|
||||
EntityAirPlane = new EntityAirBomber(speed, weight, bodyColor, additionalColor, bombs, fuelTanks);
|
||||
EntityAirPlane = new EntityAirBomber(speed, weight, bodyColor, additionalColor, bombs, bombsColor, fuelTanks);
|
||||
}
|
||||
}
|
||||
public override void DrawPlane(Graphics g)
|
||||
{
|
||||
if (EntityAirPlane is not EntityAirPlane airBomber)
|
||||
if (EntityAirPlane is not EntityAirBomber airBomber)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Pen pen = new(Color.Black);
|
||||
Brush additionalBrush = new SolidBrush(airBomber.AdditionalColor);
|
||||
Brush bombsColor = new SolidBrush(airBomber.BombsColor);
|
||||
base.DrawPlane(g);
|
||||
// обвесы
|
||||
if (airBomber.Bombs)
|
||||
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AirBomber;
|
||||
|
||||
namespace AirBomber
|
||||
{
|
||||
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AirBomber;
|
||||
|
||||
namespace AirBomber
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user