Polevoy S.V Lab_work2 #2

Merged
eegov merged 10 commits from LabWork02 into LabWork01 2022-09-30 09:40:07 +04:00
2 changed files with 38 additions and 0 deletions
Showing only changes of commit 40820059a5 - Show all commits

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();
}
}