Готовая лабораторная работа 3
This commit is contained in:
parent
3707bb2cab
commit
11ee21a1eb
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user