Готовая лабораторная работа 3

This commit is contained in:
Никита Белянин 2023-11-12 15:57:01 +04:00
parent 3707bb2cab
commit 11ee21a1eb

View File

@ -52,10 +52,10 @@ public class DrawingArmoVehicle {
_startPosY = Math.min(y, _pictureHeight - _TankHeight); _startPosY = Math.min(y, _pictureHeight - _TankHeight);
} }
public int GetPosX (){ return _startPosX; } public int GetPosX () { return _startPosX; }
public int GetPosY (){ return _startPosY; } public int GetPosY () { return _startPosY; }
public int GetWidth (){ return _TankWidth; } public int GetWidth () { return _TankWidth; }
public int GetHeight (){ return _TankHeight; } public int GetHeight () { return _TankHeight; }
public boolean CanMove(Direction direction) { public boolean CanMove(Direction direction) {
if (ArmoVehicle == null) { if (ArmoVehicle == null) {