diff --git a/SelfPropelledArtilleryUnit/EntityAdvancedArtillery.cs b/SelfPropelledArtilleryUnit/EntityAdvancedArtillery.cs new file mode 100644 index 0000000..dd67cd2 --- /dev/null +++ b/SelfPropelledArtilleryUnit/EntityAdvancedArtillery.cs @@ -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; + } + } +} diff --git a/SelfPropelledArtilleryUnit/IDrawningObject.cs b/SelfPropelledArtilleryUnit/IDrawningObject.cs new file mode 100644 index 0000000..67cae91 --- /dev/null +++ b/SelfPropelledArtilleryUnit/IDrawningObject.cs @@ -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(); + } +}