?? npc.java
字號:
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;
/*
* Created on 2005-7-10
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
/**
* @author Yongzi
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Npc extends Sprite{
String name; //人物姓名或道具名稱
String message1; //對話1
String message2; //對話2
int npcx; //人物或道具在地圖上的X坐標
int npcy; //人物或道具在地圖上的Y坐標
// int isren; //是人物還是道具,1是人物,0是道具
// boolean addbool=false; //判斷是否添加特殊道具
Image img;
public Npc(Image arg0,int width, int height, String myname,String mymessage1,int x,int y,String mymessage2,Image imagetemp) {
super(arg0,width,height);
name=myname;
message1=mymessage1;
npcx=x;
npcy=y;
message2=mymessage2;
img=imagetemp;
this.setPosition(npcx,npcy);
}
public Npc (Image img ,int x, int y) {
super(img,x,y);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -