Polevoy S.V Lab_work2 #2
21
SelfPropelledArtilleryUnit/EntityAdvancedArtillery.cs
Normal file
21
SelfPropelledArtilleryUnit/EntityAdvancedArtillery.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
17
SelfPropelledArtilleryUnit/IDrawningObject.cs
Normal file
17
SelfPropelledArtilleryUnit/IDrawningObject.cs
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user