Compare commits
No commits in common. "59ffff15f0e73edf6237ebeff8626ebb2f888404" and "abc3034fa0ae72b0a08384f7b39829089b8aa9e7" have entirely different histories.
59ffff15f0
...
abc3034fa0
@ -56,11 +56,11 @@ namespace ProjectLocomotive.CollectionGenericObjects
|
||||
/// Перегрузка оператора сложения для класса
|
||||
/// </summary>
|
||||
/// <param name="company">Компания</param>
|
||||
/// <param name="locomotive">Добавляемый объект</param>
|
||||
/// <param name="сruiser">Добавляемый объект</param>
|
||||
/// <returns></returns>
|
||||
public static int operator +(AbstractCompany company, DrawningLocomotive locomotive)
|
||||
public static int operator +(AbstractCompany company, DrawningLocomotive сruiser)
|
||||
{
|
||||
return company._collection.Insert(locomotive);
|
||||
return company._collection.Insert(сruiser);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -47,7 +47,7 @@ namespace ProjectLocomotive.CollectionGenericObjects
|
||||
_collection.Get(i).SetPosition(_placeSizeWidth * curWidth + 10, curHeight * _placeSizeHeight + 10);
|
||||
}
|
||||
|
||||
if (curWidth > width - 3)
|
||||
if (curWidth > width - 2)
|
||||
curWidth--;
|
||||
else
|
||||
{
|
||||
|
@ -55,11 +55,10 @@ namespace ProjectLocomotive.Drawnings
|
||||
|
||||
|
||||
|
||||
if (entityTLocomotive.Pipe)
|
||||
{
|
||||
Point[] points4 = { new Point(_startPosX.Value + 20, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value - 7), new Point(_startPosX.Value + 32, _startPosY.Value - 9), new Point(_startPosX.Value + 30, _startPosY.Value - 11), new Point(_startPosX.Value + 20, _startPosY.Value - 11), new Point(_startPosX.Value + 18, _startPosY.Value - 9), new Point(_startPosX.Value + 20, _startPosY.Value - 7), new Point(_startPosX.Value + 20, _startPosY.Value) };
|
||||
g.FillPolygon(wheelBrush, points4);
|
||||
}
|
||||
|
||||
Point[] points4 = { new Point(_startPosX.Value + 20, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value - 7), new Point(_startPosX.Value + 32, _startPosY.Value - 9), new Point(_startPosX.Value + 30, _startPosY.Value - 11), new Point(_startPosX.Value + 20, _startPosY.Value - 11), new Point(_startPosX.Value + 18, _startPosY.Value - 9), new Point(_startPosX.Value + 20, _startPosY.Value - 7), new Point(_startPosX.Value + 20, _startPosY.Value) };
|
||||
g.FillPolygon(wheelBrush, points4);
|
||||
|
||||
|
||||
if (entityTLocomotive.Fueltank)
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ namespace ProjectLocomotive
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Метод прорисовки поезда
|
||||
/// Метод прорисовки круисера
|
||||
/// </summary>
|
||||
private void Draw()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user