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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? player.java

?? 這是我編寫的第一個J2ME程序
?? JAVA
字號:
/* * Copyright (c) 2002, 2003 Sun Microsystems, Inc. All Rights Reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * - Redistribution of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - Redistribution in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of Sun Microsystems, Inc., 'Java', 'Java'-based * names, or the names of contributors may be used to endorse or promote * products derived from this software without specific prior written * permission. * This software is provided "AS IS," without a warranty of any kind. ALL * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN * MIDROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR * ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR * DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE * DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, * ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. * You acknowledge that this software is not designed, licensed or * intended for use in the design, construction, operation or maintenance * of any nuclear facility. $Id: Player.java,v 1.1 2003/05/16 00:16:01 zull Exp $ */package com.sun.j2me.blueprints.slugs.server;import com.sun.j2me.blueprints.slugs.shared.*;/** * This class represents a player in the game. * Players have an (x, y) location, an id, a * status, direction, a number of remaining lives, * shovels and jetpacks. */public class Player extends Item implements PlayerActions {    // direction    public static final int STILL = 0;    public static final int NORTH = 1;    public static final int SOUTH = 2;    public static final int WEST = 3;    public static final int EAST = 4;    public static final int MAX_TICKS = 15;    private Item covered;    private int direction;    private int lives;    private int jetpack_count;    private int shovel_count;    private int speed;    private int fly_ticks;    private int dig_ticks;    private int speed_ticks;    /**     * Create a new instance with location     * ('x', 'y') and ID 'id'.     */    public Player(int x, int y, int id) {        super(x, y, RUN | id);        direction = STILL;        lives = 0;        jetpack_count = 0;        shovel_count = 0;        speed = 1;        fly_ticks = 0;        dig_ticks = 0;        speed_ticks = 0;    }    /**     * Set the direction for this instance     */    public void setDirection(int direction) {        this.direction = direction;    }     /**     * Get the direction for this instance     */    public int getDirection() {        return direction;    }     /**     * Set the number of lives for this instance     */    public void setLives(int lives) {        this.lives = lives;    }     /**     * Get the number of lives for this instance     */    public int getLives() {        return lives;    }     /**     * Set the number of jetpacks for this instance     */    public void setJetpackCount(int jetpack_count) {        this.jetpack_count = jetpack_count;    }     /**     * Get the number of jetpacks for this instance     */    public int getJetpackCount() {        return jetpack_count;    }     /**     * Set the number of shovels for this instance     */    public void setShovelCount(int shovel_count) {        this.shovel_count = shovel_count;    }     /**     * Get the number of shovels for this instance     */    public int getShovelCount() {        return shovel_count;    }     /**     * Track flying, digging and boosting activity     */    public void tick() {        int status = getStatus();        if (fly_ticks > 0 && (status & FLY) != 0) {            if (--fly_ticks == 0) {                clearStatusBit(FLY);                setStatusBit(RUN);            }         }         if (dig_ticks > 0 && (status & BURROW) != 0) {            if (--dig_ticks == 0) {                clearStatusBit(BURROW);                setStatusBit(RUN);            }         }         if (speed_ticks > 0) {            if (--speed_ticks == 0) {                speed = 1;            }         }     }     /**     * Set the item this instance is covering on the field     */    public void setCovered(Item item) {        covered = item;    }     /**     * Get the item this instance is covering on the field     */    public Item getCovered() {        return covered;    }     /**     * Returns 'true' if the player is flying, 'false' othewise     */    public boolean isFlying() {        return (getStatus() & FLY) != 0;    }     /**     * Returns 'true' if the player is digging, 'false' othewise     */    public boolean isDigging() {        return (getStatus() & BURROW) != 0;    }     /**     * Returns 'true' if the player is on the ground, 'false' othewise     */    public boolean isOnGround() {        return !isFlying() &&!isDigging();    }     /**     * Get the speed for this instance     */    public int getSpeed() {        return speed;    }     /**     * Add a status bit for the player     */    public void setStatusBit(int bit) {        if (bit == FLY) {            fly_ticks = MAX_TICKS;        } else if (bit == BURROW) {            dig_ticks = MAX_TICKS;        } else if (bit == RUN_FAST) {            speed = 2;            speed_ticks = MAX_TICKS;            return;        }         setStatus(getStatus() | bit);    }     /**     * Remove a status bit for the player     */    public void clearStatusBit(int bit) {        setStatus(getStatus() & ~bit);    } }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久草这里只有精品视频| 亚洲欧美激情一区二区| 韩日精品视频一区| 精品久久一二三区| 国产成人午夜电影网| 中文字幕日韩一区| 欧美体内she精视频| 奇米色一区二区| 久久久久高清精品| 99久久99久久综合| 亚洲成年人影院| 日韩免费看的电影| 成人h动漫精品一区二区| 亚洲综合无码一区二区| 欧美一区二区视频免费观看| 国产激情偷乱视频一区二区三区| 亚洲日本va午夜在线电影| 欧美三日本三级三级在线播放| 日本不卡一区二区| 国产女人水真多18毛片18精品视频| 99久久国产免费看| 日韩中文字幕1| 国产日韩欧美一区二区三区乱码 | 成人激情免费网站| 亚洲精品久久久蜜桃| 欧美一级片在线| aa级大片欧美| 久久精品国产第一区二区三区| 国产嫩草影院久久久久| 欧美日韩一卡二卡三卡| 国产 欧美在线| 亚洲bt欧美bt精品| 国产精品视频免费看| 欧美日韩视频在线第一区| 国产成人在线影院| 日韩成人一区二区| 亚洲欧洲日韩女同| 久久久久久97三级| 欧美日韩精品一区二区三区| 国产福利一区二区三区视频在线| 亚洲一区二区三区四区在线免费观看| 精品免费国产二区三区| 欧美视频一二三区| kk眼镜猥琐国模调教系列一区二区| 日韩电影在线看| 一区二区在线观看免费 | 国产女主播在线一区二区| 欧美日韩精品电影| 一本到高清视频免费精品| 精品一区二区三区在线观看国产| 一区二区高清视频在线观看| 国产欧美精品一区二区三区四区| 日韩欧美第一区| 欧美日韩dvd在线观看| 99精品久久免费看蜜臀剧情介绍| 韩国午夜理伦三级不卡影院| 日韩精品电影一区亚洲| 亚洲午夜久久久久久久久电影院 | 亚洲欧洲制服丝袜| 国产欧美1区2区3区| 精品国产乱码久久久久久久久| 欧美理论片在线| 91精彩视频在线观看| jlzzjlzz亚洲女人18| 国产精品系列在线观看| 国产一区二区三区电影在线观看| 天天av天天翘天天综合网| 亚洲午夜日本在线观看| 一区二区久久久久久| 亚洲男人天堂av网| 一区二区三区在线看| 亚洲人成电影网站色mp4| 国产精品久久久久影院亚瑟| 国产精品全国免费观看高清| 欧美激情一二三区| 国产精品乱码一区二区三区软件| 久久久国产一区二区三区四区小说 | 亚洲一区欧美一区| 亚洲一区中文在线| 亚洲成人tv网| 免费观看日韩av| 久久精品国产77777蜜臀| 精品一区二区免费视频| 黄页视频在线91| 国产河南妇女毛片精品久久久| 国产乱码精品一区二区三区av | 99久久伊人精品| 91在线视频18| 欧美色综合久久| 91精品欧美久久久久久动漫 | 国产精品系列在线观看| 国产91在线观看| 99vv1com这只有精品| 色系网站成人免费| 欧美日韩精品免费观看视频| 欧美一级高清片| 国产视频一区二区三区在线观看| 国产精品久久久久久久第一福利| 一区二区三区中文字幕精品精品| 午夜精品久久久久久久久| 美腿丝袜亚洲色图| 成人午夜看片网址| 91福利社在线观看| 日韩精品专区在线影院重磅| 欧美激情艳妇裸体舞| 亚洲愉拍自拍另类高清精品| 久久丁香综合五月国产三级网站 | 亚洲激情网站免费观看| 无码av中文一区二区三区桃花岛| 国产在线麻豆精品观看| 99国产精品久久久久| 欧美精品久久一区| 久久免费视频色| 一区二区三区不卡在线观看| 精品亚洲成a人| 91免费视频网址| 精品国产一区二区三区忘忧草 | 99久久伊人久久99| 91精品国产综合久久婷婷香蕉| 欧美国产一区视频在线观看| 亚洲资源中文字幕| 国产精品一区二区在线播放| 欧洲人成人精品| 久久久久亚洲综合| 婷婷激情综合网| 不卡一区二区三区四区| 日韩亚洲欧美在线观看| 国产精品久久久久久久蜜臀| 麻豆国产精品一区二区三区| 色综合久久久久| 国产午夜精品福利| 日韩在线观看一区二区| 91网址在线看| 国产欧美一区二区精品久导航 | 国产精品一区二区久激情瑜伽| 欧美天堂一区二区三区| 国产精品免费免费| 另类欧美日韩国产在线| 欧美熟乱第一页| 中文字幕一区二区三区四区| 国产乱人伦精品一区二区在线观看| 欧美丰满一区二区免费视频| 综合欧美一区二区三区| 国产乱人伦偷精品视频不卡| 日韩欧美黄色影院| 五月天欧美精品| 欧美性猛交xxxx黑人交| 中文字幕在线一区| 风间由美一区二区三区在线观看 | 亚洲国产aⅴ成人精品无吗| jizzjizzjizz欧美| 中文字幕不卡一区| 国产精品中文有码| 久久久久久久国产精品影院| 精品夜夜嗨av一区二区三区| 欧美一区二区美女| 日韩1区2区日韩1区2区| 欧美日韩国产另类一区| 亚洲国产一区二区三区| 精品视频在线免费| 亚洲国产成人tv| 欧美精品v国产精品v日韩精品| 亚洲在线中文字幕| 欧美视频在线观看一区| 一区二区三区在线观看欧美| 在线观看日韩电影| 亚洲综合色丁香婷婷六月图片| 在线视频一区二区三| 亚洲最大色网站| 在线观看视频一区二区欧美日韩| 亚洲一区免费在线观看| 欧美日韩中文一区| 日韩精品成人一区二区在线| 日韩三级在线免费观看| 精品一区二区日韩| 国产夜色精品一区二区av| 成人午夜看片网址| 亚洲欧美电影院| 欧美剧情片在线观看| 麻豆精品久久精品色综合| 久久久综合网站| 不卡的av电影| 亚洲一区二区三区美女| 在线91免费看| 国产精品综合在线视频| 亚洲欧美一区二区在线观看| 欧洲精品一区二区| 蜜臀av性久久久久蜜臀aⅴ流畅| 精品精品欲导航| 成人黄色一级视频| 亚洲国产日韩一区二区| 日韩一区二区电影网| 国产白丝精品91爽爽久久| 亚洲精品亚洲人成人网在线播放| 欧美亚洲日本一区| 久久丁香综合五月国产三级网站| 中文字幕第一区第二区| 欧美日韩视频专区在线播放| 国精产品一区一区三区mba桃花| 亚洲桃色在线一区|