亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? character.java

?? 斜45度游戲《NetIntruder》
?? JAVA
字號:
package isoj2me;import java.util.*;import javax.microedition.lcdui.*;/** * <p>isoj2me: Character</p> * <p>This class manages Characters.</p> * <p>Copyright: Copyright (c) 2006</p> * <p>License: Lesser GPL (http://www.gnu.org)</p> * <p>Company: <a href=http://www.mondonerd.com target="_blank">Mondonerd.com</a></p> * @author Massimo Maria Avvisati * @version 0.5 */public class Character {  public boolean isMoving = false;  public String name = "";  public int x = 0;  public int y = 0;  public int z = 0;  public int modifierX = 0; //This changes the painting coordinates in the draw function  public int modifierY = 0; //This changes the painting coordinates in the draw function  private int frame = 0;  private Hashtable actions = new Hashtable(6);  private String currentAction = null;  public int speed = 500;  private Hashtable frames = new Hashtable();  public int option = 0;   private long startTime = System.currentTimeMillis();  private long endTime = 0;  public int lastDrawnX = 0;  public int lastDrawnY = 0;    public Character() {  }  /**   * Create a new character.   * @param name Name/code of the character   */  public Character(String name) {    this.name = name;  }  /**   * Create a new character   * @param name Name or code of the character   * @param x x on the map   * @param y y on the map   * @param z layer on the map   */  public Character(String name, int x, int y, int z) {    this.name = name;    this.x = x;    this.y = y;    this.z = z;  }  /**   * This draw the character at given coordinates on given Graphics. This method also change the current frame (if more than one) for the current action.   * @param x x   * @param y y   * @param g given Graphics where to paint the character   */  public void draw(int x, int y, Graphics g) {    endTime = System.currentTimeMillis();    long deltaTime = 0;    if (currentAction != null && actions.containsKey(currentAction)) {      String tempFrame = "";      if (frame > Integer.parseInt(actions.get(currentAction).toString()) || speed == 0) {    	  frame = 0;      }      if (frame > 0) {	tempFrame = frame + "";      }      Image temp_image = Utility.loadImage(currentAction + tempFrame, frames);      g.drawImage(temp_image, x + modifierX,		  y - temp_image.getHeight() + modifierY,		  Graphics.TOP | Graphics.LEFT);      deltaTime = endTime - startTime;      if (deltaTime >= speed) {	changeFrame();	startTime = System.currentTimeMillis();      }    }  }  /**   * Store an action into this character action list.   * @param action basic string used to load frames   * @param frames number of frames for this action   */  public void putAction(String action, int frames) {    actions.put(action, frames + "");  }  /**   * This return the name that identify the action that is performed in this moment by the character   * @return basic string for this action   */  public String getCurrentAction() {    return currentAction;  }  /**   * Calculate the current frame and return the associated Image object   * @return current Image used   */  public Image getCurrentImage() {    Image temp_image = null;    if (currentAction != null && actions.containsKey(currentAction)) {      String tempFrame = "";      if (frame > Integer.parseInt(actions.get(currentAction).toString())) {	frame = 0;      }      if (frame > 0) {	tempFrame = frame + "";      }      temp_image = Utility.loadImage(currentAction + tempFrame, frames);    }    return temp_image;  }  /**   * Set the current action for this character. The action have to be already in the actions list   * @param action name of the action to perform * @throws Exception    */  public void setCurrentAction(String action) {    if (actions.containsKey(action)) {      currentAction = action;    }  }  private void changeFrame() {    if (actions.containsKey(currentAction)) {      int numberOfFrames = Integer.parseInt(actions.get(currentAction).toString());      frame++;      if (frame > numberOfFrames) {	frame = 0;      }    }    else {      frame = 0;    }  }  /**   * Return the name of the Character   * @return name of the Character   */  public String toString() {    return this.name;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀a∨国产成人精品| 成人黄色在线看| 久久91精品国产91久久小草| 午夜精品久久一牛影视| 裸体健美xxxx欧美裸体表演| 成人免费视频一区| 欧美亚洲一区三区| 国产亚洲一区二区三区四区 | 亚洲国产综合色| 五月天一区二区| 国产精品88888| 欧美日本国产一区| 国产精品丝袜91| 蜜乳av一区二区三区| av亚洲精华国产精华精华| 欧美一区二区在线不卡| 成人免费在线观看入口| 国产98色在线|日韩| 91福利小视频| 日本一区二区免费在线| 亚洲不卡av一区二区三区| 国产69精品久久久久777| 欧美电影一区二区三区| 亚洲天堂中文字幕| 国产乱淫av一区二区三区 | 国产精品不卡一区二区三区| 美美哒免费高清在线观看视频一区二区| 成人一区在线观看| 日韩一二三四区| 亚洲国产日韩一级| 91黄色小视频| 亚洲另类在线视频| 9人人澡人人爽人人精品| 国产亚洲一区字幕| 国产一区不卡在线| 精品国产欧美一区二区| 亚洲成人免费视| 色av成人天堂桃色av| 国产免费成人在线视频| 国产精品91一区二区| 欧美一区永久视频免费观看| 亚洲午夜成aⅴ人片| 欧美无乱码久久久免费午夜一区| 国产日本一区二区| 日本在线播放一区二区三区| 91久久精品日日躁夜夜躁欧美| 国产精品丝袜一区| 成人app网站| 国产蜜臀97一区二区三区| 国产精品影视网| 国产日本亚洲高清| 成人国产在线观看| 国产精品久久久久天堂| 99亚偷拍自图区亚洲| 国产精品久久久久桃色tv| 91在线porny国产在线看| 日韩美女视频一区| 在线观看欧美日本| 午夜免费久久看| 91精品国产综合久久福利| 久久国产日韩欧美精品| 精品国产乱码91久久久久久网站| 国产一区二区在线观看免费| 国产日韩欧美精品在线| 国产福利一区二区三区在线视频| 久久久精品影视| 国产福利一区二区三区视频在线 | 日韩电影免费在线观看网站| 日本久久一区二区三区| 中文字幕中文字幕一区二区| 日本高清不卡一区| 美女任你摸久久| 中文字幕av免费专区久久| 91久久线看在观草草青青| 视频一区二区三区中文字幕| 久久综合狠狠综合久久综合88 | 精品亚洲成a人| 欧美精品亚洲二区| 精品中文字幕一区二区小辣椒| 久久久久国产精品麻豆ai换脸| 9l国产精品久久久久麻豆| 午夜欧美在线一二页| 欧美高清在线精品一区| 欧美在线观看禁18| 国产综合一区二区| 一区二区三区不卡视频| 久久先锋影音av| 日本韩国一区二区三区视频| 九一久久久久久| 日韩视频免费直播| 成人高清免费观看| 日本女优在线视频一区二区| 国产精品三级电影| 91精品在线观看入口| 成人av在线播放网站| 亚洲小说欧美激情另类| 久久久噜噜噜久久人人看| 欧美高清hd18日本| 成人av免费在线| 日本在线播放一区二区三区| 亚洲欧美日韩在线不卡| 日韩一区二区在线看| 91蜜桃婷婷狠狠久久综合9色| 久草这里只有精品视频| 午夜精品免费在线观看| 综合色天天鬼久久鬼色| 久久久久久久久久美女| 欧美一区二区精品| 色综合 综合色| www.亚洲在线| 国产福利91精品一区二区三区| 视频一区视频二区中文字幕| 一个色综合网站| 国产精品国产三级国产| 欧美一区二区三区免费观看视频| 91原创在线视频| av在线不卡免费看| 成人午夜免费av| 国产乱国产乱300精品| 久久99精品久久久久久久久久久久| 亚洲综合一二三区| 一区二区三区影院| 亚洲精品老司机| 亚洲男同1069视频| 亚洲免费观看在线观看| 国产精品久久久久国产精品日日| 精品精品国产高清a毛片牛牛| 717成人午夜免费福利电影| 欧美日韩激情一区| 欧美日韩国产小视频| 欧美日韩国产高清一区二区 | 日韩在线一二三区| 亚洲成av人影院在线观看网| 香蕉影视欧美成人| 亚洲一线二线三线久久久| 一区二区三区在线视频免费观看| 国产精品高清亚洲| 亚洲精品日韩综合观看成人91| 国产精品二三区| 亚洲精品视频在线观看网站| 一级中文字幕一区二区| 亚洲成人自拍一区| 美女视频黄 久久| 韩国av一区二区三区四区| 亚洲国产一区二区三区青草影视| 中文一区在线播放| 欧美一区三区四区| 久久这里都是精品| 亚洲制服丝袜一区| 国产一区二区三区四区在线观看| 91美女精品福利| 精品国一区二区三区| 综合久久综合久久| 九九九久久久精品| 在线精品国精品国产尤物884a| 精品99999| 亚洲一区自拍偷拍| 国产a级毛片一区| 欧美理论电影在线| 国产精品高清亚洲| 久久福利资源站| 欧美日韩成人激情| 国产色婷婷亚洲99精品小说| 婷婷中文字幕综合| 97精品久久久午夜一区二区三区| 日韩视频在线你懂得| 一区二区视频在线看| 国产精品一区免费在线观看| 欧美人牲a欧美精品| 国产精品午夜在线| 国产综合色在线视频区| 欧美一区二区在线视频| 亚洲国产欧美日韩另类综合| 成人av在线观| 国产欧美久久久精品影院| 丝袜美腿亚洲一区| 色网综合在线观看| 国产精品乱人伦一区二区| 麻豆成人av在线| 欧美一区二区三区四区久久| 亚洲黄色性网站| 99免费精品视频| 欧美国产日本视频| 国产福利精品导航| 久久久欧美精品sm网站| 精品一区二区三区蜜桃| 日韩精品最新网址| 日本亚洲欧美天堂免费| 欧美裸体一区二区三区| 亚洲欧美激情小说另类| 97久久人人超碰| 自拍偷拍欧美激情| 在线观看亚洲一区| 亚洲一卡二卡三卡四卡五卡| 色婷婷一区二区三区四区| 中文字幕一区二区三| 不卡大黄网站免费看| 亚洲欧洲日韩在线| 91在线高清观看| 亚洲图片欧美视频|