?? plane.java
字號:
package aibullet;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
/**
* @author java-bin
* @version 1.0
*/
public class Plane extends Sprite
{
private Image plane_img=null;
private int plane_size_W;//width of picture
private int plane_size_H;//heigth of picture
public Plane(Image plane_img,int w,int h)
{
super(plane_img,w,h);
this.plane_img=plane_img;
this.plane_size_W=w;
this.plane_size_H=h;
}
public int getPosX()
{
return getX()+plane_size_W/2-3;
}
public int getPoxY()
{
return getY()-3;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -