PIbd-21 Belianin N.N. LabWork04 Hard #5
@ -20,7 +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);
|
||||
@ -30,6 +30,7 @@ public class DrawingTank extends DrawingArmoVehicle {
|
||||
return OrnamentAdd;
|
||||
}
|
||||
|
||||
// Прорисовка объекта
|
||||
public void DrawTransport(Graphics2D g) {
|
||||
if (ArmoVehicle == null) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user