three commit

This commit is contained in:
Salikh 2023-12-30 09:35:50 +04:00
parent 5523780ec8
commit 53230875c8

@ -5,15 +5,15 @@ public class DrawingObjectAirBomber implements IMoveableObject{
this.drawingAir = drawingPlane;
}
public ObjectParameters getObjectPosition(){
if(drawingAir == null || drawingAir.getEntityPlane() == null)
if(drawingAir == null || drawingAir.getEntityAir() == null)
return null;
return new ObjectParameters(drawingAir.getPosX(), drawingAir.getPosY(),
drawingAir.getWidth(), drawingAir.getHeight());
}
public int getStep(){
if(drawingAir.getEntityPlane() == null)
if(drawingAir.getEntityAir() == null)
return 0;
return drawingAir.getEntityPlane().step.get().intValue();
return drawingAir.getEntityAir().step.get().intValue();
}
public boolean checkCanMove(DirectionType direction){
if(drawingAir == null)