difficult

This commit is contained in:
Timourka 2023-10-09 21:35:00 +04:00
parent ab1835aec7
commit 9abbe9bdc0
2 changed files with 3 additions and 23 deletions

View File

@ -50,9 +50,6 @@ public class DrawingLoco extends DrawingTrain{
super.DrawTransport(g2d);
//wheels
wheelDrawing.Draw(_startPosX, _startPosY, ((EntityLoco)EntityTrain).FuelTank, EntityTrain.BodyColor, g2d);
g2d.setColor(((EntityLoco)EntityTrain).AdditionalColor);
if (((EntityLoco)EntityTrain).Tube)
{
@ -123,5 +120,8 @@ _startPosY+12,_startPosY+12,_startPosY+30,_startPosY+30
}, 4);
}
//wheels
wheelDrawing.Draw(_startPosX, _startPosY, ((EntityLoco)EntityTrain).FuelTank, EntityTrain.BodyColor, g2d);
}
}

View File

@ -36,54 +36,34 @@ public class WheelDrawingSimple implements IWheelDrawing{
g2d.setColor(color);
g2d.fillOval(_startPosX + 3, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 4, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 26, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 27, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 46, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 47, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 72, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 73, _startPosY + 35, 6, 6);
if (numWheel == NumWheel.TwoWheel){
g2d.fillOval(_startPosX + 14, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 15, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 59, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 60, _startPosY + 35, 6, 6);
}
if (numWheel == NumWheel.FourWheel){
g2d.fillOval(_startPosX + 11, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 12, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 18, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 19, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 55, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 56, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 63, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 64, _startPosY + 35, 6, 6);
}
if (fuelTank){
g2d.fillOval(_startPosX + 3+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 4+85, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 26+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 27+85, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 46+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 47+85, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 72+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 73+85, _startPosY + 35, 6, 6);
if (numWheel == NumWheel.TwoWheel){
g2d.fillOval(_startPosX + 14+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 15+85, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 59+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 60+85, _startPosY + 35, 6, 6);
}
if (numWheel == NumWheel.FourWheel){
g2d.fillOval(_startPosX + 11+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 12+85, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 18+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 19+85, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 55+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 56+85, _startPosY + 35, 6, 6);
g2d.fillOval(_startPosX + 63+85, _startPosY + 34, 8, 8);
g2d.fillOval(_startPosX + 64+85, _startPosY + 35, 6, 6);
}
}
}