?? goods.java
字號:
package obj;
import javax.microedition.lcdui.game.*;
import javax.microedition.lcdui.*;
import main.*;
public class Goods {
public String name;//名字
public int price;//價格
public int n;//數量
public Image img;//圖片。
public int imgx;//坐標
public int imgy;
public int imgw;//寬高
public int imgh;
public int number;// 編號
public Goods() {
name="";
price=0;
n=0;//數量
imgx=0;
imgy=0;
imgw=11;//寬高
imgh=11;
img=null;
}
public void set(Goods good){
this.name=good.name;
this.price=good.price;//價格
this. n=good.n;//數量
this. img=good.img;//圖片。
this. imgx=good.imgx;//坐標
this. imgy=good.imgy;
this. imgw=good.imgw;//寬高
this. imgh=good.imgh;
this.number=good.number;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -