Готовая Лабораторная 4
This commit is contained in:
parent
53eb16ffd5
commit
d0c318b85d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user