Compare commits
3 Commits
4511d78c10
...
b4742652ac
Author | SHA1 | Date | |
---|---|---|---|
b4742652ac | |||
10229736d9 | |||
7208bf8c77 |
@ -56,11 +56,11 @@ namespace ProjectLocomotive.CollectionGenericObjects
|
|||||||
/// Перегрузка оператора сложения для класса
|
/// Перегрузка оператора сложения для класса
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="company">Компания</param>
|
/// <param name="company">Компания</param>
|
||||||
/// <param name="сruiser">Добавляемый объект</param>
|
/// <param name="locomotive">Добавляемый объект</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static int operator +(AbstractCompany company, DrawningLocomotive сruiser)
|
public static int operator +(AbstractCompany company, DrawningLocomotive locomotive)
|
||||||
{
|
{
|
||||||
return company._collection.Insert(сruiser);
|
return company._collection.Insert(locomotive);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -47,7 +47,7 @@ namespace ProjectLocomotive.CollectionGenericObjects
|
|||||||
_collection.Get(i).SetPosition(_placeSizeWidth * curWidth + 10, curHeight * _placeSizeHeight + 10);
|
_collection.Get(i).SetPosition(_placeSizeWidth * curWidth + 10, curHeight * _placeSizeHeight + 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (curWidth > width - 2)
|
if (curWidth > width - 3)
|
||||||
curWidth--;
|
curWidth--;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -48,11 +48,13 @@ namespace ProjectLocomotive.Drawnings
|
|||||||
base.DrawTransport(g);
|
base.DrawTransport(g);
|
||||||
|
|
||||||
|
|
||||||
|
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) };
|
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);
|
g.FillPolygon(wheelBrush, points4);
|
||||||
|
}
|
||||||
|
|
||||||
if (entityTLocomotive.Fueltank)
|
if (entityTLocomotive.Fueltank)
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@ namespace ProjectLocomotive
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Метод прорисовки круисера
|
/// Метод прорисовки поезда
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void Draw()
|
private void Draw()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user