three commit
This commit is contained in:
parent
5523780ec8
commit
53230875c8
@ -5,15 +5,15 @@ public class DrawingObjectAirBomber implements IMoveableObject{
|
|||||||
this.drawingAir = drawingPlane;
|
this.drawingAir = drawingPlane;
|
||||||
}
|
}
|
||||||
public ObjectParameters getObjectPosition(){
|
public ObjectParameters getObjectPosition(){
|
||||||
if(drawingAir == null || drawingAir.getEntityPlane() == null)
|
if(drawingAir == null || drawingAir.getEntityAir() == null)
|
||||||
return null;
|
return null;
|
||||||
return new ObjectParameters(drawingAir.getPosX(), drawingAir.getPosY(),
|
return new ObjectParameters(drawingAir.getPosX(), drawingAir.getPosY(),
|
||||||
drawingAir.getWidth(), drawingAir.getHeight());
|
drawingAir.getWidth(), drawingAir.getHeight());
|
||||||
}
|
}
|
||||||
public int getStep(){
|
public int getStep(){
|
||||||
if(drawingAir.getEntityPlane() == null)
|
if(drawingAir.getEntityAir() == null)
|
||||||
return 0;
|
return 0;
|
||||||
return drawingAir.getEntityPlane().step.get().intValue();
|
return drawingAir.getEntityAir().step.get().intValue();
|
||||||
}
|
}
|
||||||
public boolean checkCanMove(DirectionType direction){
|
public boolean checkCanMove(DirectionType direction){
|
||||||
if(drawingAir == null)
|
if(drawingAir == null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user