лаба 2 точно точно готовая
This commit is contained in:
parent
4ccd1c4123
commit
b19ff39870
@ -5,7 +5,6 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Catamaran.MovementStrategy;
|
||||
//using Catamaran.DrawningObjects;
|
||||
|
||||
namespace Catamaran.MovementStrategy
|
||||
{
|
||||
|
@ -80,7 +80,6 @@ namespace Catamaran.DrawningObjects
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
/// </summary>
|
||||
@ -91,7 +90,6 @@ namespace Catamaran.DrawningObjects
|
||||
/// <param name="height">Высота картинки</param>
|
||||
/// <param name="catamaranWidth">Ширина прорисовки катамарана</param>
|
||||
/// <param name="catamaranHeight">Высота прорисовки катамарана</param>
|
||||
|
||||
/// <returns>true - объект создан, false - проверка не пройдена, нельзя создать объект в этих размерах</returns>
|
||||
protected DrawningCatamaran(int speed, double weight, Color bodyColor, int width, int height, int catamaranWidth, int catamaranHeight)
|
||||
{
|
||||
|
@ -23,7 +23,6 @@ namespace Catamaran.DrawningObjects
|
||||
/// <param name="floatDetail">Признак наличия поплавков</param>
|
||||
/// <param name="width">Ширина картинки</param>
|
||||
/// <param name="height">Высота картинки</param>
|
||||
|
||||
public DrawningSailCatamaran(int speed, double weight, Color bodyColor, Color
|
||||
additionalColor, bool sail, bool floatDetail, int width, int height) :
|
||||
base(speed, weight, bodyColor, width, height, 190, 120)
|
||||
@ -44,7 +43,6 @@ namespace Catamaran.DrawningObjects
|
||||
Brush additionalBrush = new
|
||||
SolidBrush(sailCatamaran.AdditionalColor);
|
||||
|
||||
|
||||
//поплавки
|
||||
if (sailCatamaran.FloatDetail)
|
||||
{
|
||||
@ -70,6 +68,7 @@ namespace Catamaran.DrawningObjects
|
||||
g.DrawPolygon(pen, floatDetail2);
|
||||
}
|
||||
base.DrawTransport(g);
|
||||
|
||||
//парус
|
||||
if (sailCatamaran.Sail)
|
||||
{
|
||||
@ -78,7 +77,6 @@ namespace Catamaran.DrawningObjects
|
||||
new Point(_startPosX + 30, _startPosY + 80),
|
||||
new Point(_startPosX + 70, _startPosY+10),
|
||||
new Point(_startPosX + 145, _startPosY + 80),
|
||||
|
||||
};
|
||||
g.DrawPolygon(pen, sail);
|
||||
g.FillPolygon(additionalBrush, sail);
|
||||
|
Loading…
Reference in New Issue
Block a user