Готовая Лабораторная 4

This commit is contained in:
Никита Белянин 2023-11-13 01:16:39 +04:00
parent 53eb16ffd5
commit d0c318b85d

View File

@ -20,6 +20,7 @@ public class DrawingTank extends DrawingArmoVehicle {
return;
}
// Установка позиций
public void SetPosition(int x, int y) {
_startPosX = Math.min(x, _pictureWidth-_TankWidth);
_startPosY = Math.min(y, _pictureHeight-_TankHeight);