Добавлена продвинутая сущность и интерфейс

This commit is contained in:
Сергей Полевой 2022-09-26 18:28:05 +04:00
parent d9e184ca89
commit 40820059a5
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Artilleries
{
internal class EntityAdvancedArtillery : EntityArtillery
{
public Color DopColor { get; private set; }
public bool Weapon { get; private set; }
public bool SalvoBattery { get; private set; }
public EntityAdvancedArtillery(int speed, float weight, Color bodyColor, Color dopColor, bool weapon, bool salvoBattery) : base(speed, weight, bodyColor)
{
DopColor = dopColor;
Weapon = weapon;
SalvoBattery = salvoBattery;
}
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Artilleries
{
internal interface IDrawningObject
{
public float Step { get; }
void SetObject(int x, int y, int width, int height);
void MoveObject(Direction direction);
void DrawingObject(Graphics g);
(float Left, float Right, float Top, float Bottom) GetCurrentPosition();
}
}