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

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

?? bushred.java

?? 用java開發的一個實施策略游戲源碼 值得學習一下
?? JAVA
字號:
/*
	Netwar
	Copyright (C) 2002  Daniel Grund, Kyle Kakligian, Jason Komutrattananon, & Brian Hibler.
 
	This file is part of Netwar.
 
	Netwar is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.
 
	Netwar is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
 
	You should have received a copy of the GNU General Public License
	along with Netwar; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package netwar.game.object;
import netwar.game.*;
import netwar.utils.*;
import netwar.utils.vectorgraphics.*;

/** Palm tree object. Destroyable obstacle.
 * @author Group N2 - Project Netwar
 * @author Kyle Kakligian
 */
public class BushRed extends Bush {
    // colors
    private static java.awt.Color red = new java.awt.Color(224, 0,0);
    // point list
    private static SelfConvertingPoint _pts2[] = {
        new SelfConvertingPoint(0,         0,        0),
        new SelfConvertingPoint(-2.54509, -0.04361, 2.53887),
        new SelfConvertingPoint(-2.03904, -0.15954, 2.87754),
        new SelfConvertingPoint(-2.24014, -0.55345, 2.58594),
        new SelfConvertingPoint( 0.82447,  2.36969, 2.09345),
        new SelfConvertingPoint( 0.22073,  2.36969, 2.09345),
        new SelfConvertingPoint( 0.54166,  2.54627, 1.72663),
        new SelfConvertingPoint(-2.94813,  0.70831, 1.82138),
        new SelfConvertingPoint(-3.21554,  0.33529, 1.89638),
        new SelfConvertingPoint(-3.14054,  0.34025, 1.45216),
        new SelfConvertingPoint( 0.56498, -1.79133, 0.99609),
        new SelfConvertingPoint( 0.29005, -1.57347, 1.59937),
        new SelfConvertingPoint( 0.85407, -1.49344, 1.49857)};
       
    protected static CoherentPointSet points2 = new CoherentPointSet(_pts.length + _pts2.length);
    protected static GraphicThing appearance2= null;
    protected VirtualCoherentGraphicThing myAppearance2;;

    /** Creates a new instance of PineTree */
    public BushRed() {
    }
	
    /** Initialize the Point3Ds used for this Base.
     * These are the location of the ground-center of the Base in game-space, and
     * the relative locations of the triangle/line vertices relative to that point.
     */
    protected void createVectors() {
        super.createVectors();
        
        if(appearance2 == null) {
            appearance2 = new OrderedGraphicSet( appearance, _pts2.length + 1); 
            ((OrderedGraphicSet)appearance2).add(new GraphicTriangle( _pts2[2], _pts2[1], _pts2[3], red), false); 
            ((OrderedGraphicSet)appearance2).add(new GraphicTriangle( _pts2[5], _pts2[4], _pts2[6], red), false); 
            ((OrderedGraphicSet)appearance2).add(new GraphicTriangle( _pts2[8], _pts2[7], _pts2[9], red), false); 
            ((OrderedGraphicSet)appearance2).add(new GraphicTriangle( _pts2[12], _pts2[11], _pts2[10], red), false); 

            for(int t = 0; t < _pts2.length; t++)
                points2.add(_pts2[t]);
            for(int t = 0; t < _pts.length; t++)
                points2.add(_pts[t]);
        }
        if(netwar.Mapper.theApp != null) myAppearance2 = new VirtualCoherentGraphicThing(appearance2, points2, vr[0], (new java.util.Random()).nextInt(360));
        else myAppearance2 = new VirtualCoherentGraphicThing(appearance2, points2, vr[0], netwar.Netwar.netwar.random.nextInt(360));
    }
    
    /** Returns false, because the tree has no weapon.
     * @return false
     */
    protected boolean aim() {
        return false;
    }
    
    /** Perform the data changes for one frame of animation while dying. */
    protected void animateDie() {
        if(frame == framesToDie()) {
            Hex.getHex(x,y).unreserve();
            Hex.getHex(x,y).leave(this);
            myAppearance2.explode(vr[0]);
        }
        frame--;
        if(frame == 0)
            remove();
    }
    
    /** Perform the data changes for one frame of animation while being made.
     * Pine trees pre-exist: there is no formation animation.
     */
    protected void animateMake() {
    }
    
    /** Draw this GameObject onto GameViewer v, by using v's drawing methods.
     * @param v The GameViewer which will display this GameObject.
     * @see netwar.gui.HexViewer
     */
    public void draw(GameViewer v) {
        myAppearance2.draw(v);
    }
    /** Requests that the GraphicThing(s) used by this object be added to GameViewer v.
     * @param v The GameViewer which will be displaying the object.
     */
    public void addTo(GameViewer v) {
        v.add(myAppearance2);
    }
    public void killGraphics() {
        myAppearance2.kill();
    }
    /** Returns the number of frames of animation for the death sequence.
     * @return 5
     */
    protected int framesToDie() {
        return 10;
    }
    
    /** Returns the number of frames of animation for the creation sequence.
     * @return 0
     */
    protected int framesToMake() {
        return 0;
    }
    
    /** Return the height of this GameObject for selection box and explosion hit calculations.
     * @return 20
     */
    public float getHeight() {
        return 20f;
    }
    
    /** Return the width of this GameObject for selection box and explosion hit calculations.
     * @return 5
     */
    public float getWidth() {
        return 6.2f;
    }
    
    /** Clear the current long-term goal. */
    public void setGoal() {
    }
    
    /** Set the current long-term goal to a GameObject.
     * This is a tree. It does not use the goal system.
     * @param u The GameObject which is the goal.
     */
    public void setGoal(GameObject u) {
    }
    
    /** Set the current long-term goal to a location, at hex coordinate (gx, gy).
     * This is a tree. It does not use the goal system.
     * @param gx The x coordinate of the goal, in hex coords.
     * @param gy The y coordinate of the goal, in hex coords.
     */
    public void setGoal(int gx, int gy) {
    }
    
    /** Perform operations for this time step.
     * Specifically, perform the Point3D transforms for any/all animations,
     * fire at an enemy if possible, and do any required decision making.
     * This is a tree. It is only animated if it is dying.
     */
    protected void update() {
        if(action == 5)
            animateDie();
    }
    
    /** Return the number of frames to wait between firing shots.
     * @return 0
     */
    public int weaponDelay() {
        return 0;
    }
    
    /** Return the square of the maximum weapon range of this GameObject.
     * @return 0
     */
    public float weaponRangeSquared() {
        return 0f;
    }
    
    public boolean isDead() {
        return (action == 5);
    }
    public boolean damageable() {
        return (action != 5);
    }
    /** The tree uses the 'threshold damage system'.
     * If sufficient damage (15 or more) is dealt in one blow,
     * the tree is destroyed.
     */
    public void recieveDamage(int dam) {
        if(dam > 5)
            netwar.gui.HexViewer.getHexViewer().displayString(mess[(new java.util.Random()).nextInt(mess.length)]);
    }
    private static final String mess[] = {"A feeble attempt to destroy one little tree has failed.", "The fruited tree is too strong.", "Don't eat at Freebird's."};
    static final String[] PROPERTIES = {};
    protected String[] PROPERTIES() {
        return PROPERTIES;
    }
    protected String getProperty(int p) {
        switch(p) {
            default:
                Assert.notFalse(false, "getProperty(int) error.");
        }
        return null;
    }
    
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美激情| 另类成人小视频在线| 亚洲成人精品在线观看| 久久电影网电视剧免费观看| 91在线视频官网| 日韩欧美一卡二卡| 亚洲欧美日韩成人高清在线一区| 婷婷久久综合九色综合伊人色| 粉嫩高潮美女一区二区三区| 欧美在线观看一区二区| 国产精品色婷婷| 日本sm残虐另类| 91麻豆免费在线观看| 精品欧美一区二区在线观看| 亚洲国产中文字幕在线视频综合| 粉嫩一区二区三区在线看| 日韩三级在线观看| 亚洲一二三四在线| 99精品热视频| 中文字幕乱码一区二区免费| 国产制服丝袜一区| 欧美一区二区三区啪啪| 亚洲制服丝袜在线| 91小视频免费看| 国产精品乱子久久久久| 国产精品亚洲综合一区在线观看| 制服丝袜日韩国产| 午夜电影一区二区三区| 日本伦理一区二区| 亚洲人成小说网站色在线| 成人午夜在线播放| 国产欧美一区二区三区在线看蜜臀 | 久久久久国产精品人| 免费日韩伦理电影| 欧美精品乱人伦久久久久久| 亚洲福利视频一区| 欧美日韩中文字幕一区| 亚洲自拍偷拍欧美| 在线视频中文字幕一区二区| 亚洲激情图片小说视频| 在线亚洲欧美专区二区| 亚洲综合999| 欧美日韩中文精品| 秋霞午夜av一区二区三区| 3atv在线一区二区三区| 美女视频网站黄色亚洲| 日韩欧美一区二区视频| 激情久久久久久久久久久久久久久久| 欧美一区二区三区视频免费 | 国产精品亲子伦对白| 丁香婷婷综合色啪| 国产精品美女久久久久av爽李琼 | 综合av第一页| 在线视频欧美精品| 婷婷综合五月天| 日韩美女一区二区三区四区| 国产美女精品人人做人人爽| 国产网站一区二区三区| 91美女在线看| 日本视频在线一区| 久久久国产一区二区三区四区小说 | www.欧美色图| 亚洲一区二区av在线| 日韩欧美国产系列| 成人伦理片在线| 亚洲韩国一区二区三区| wwwwww.欧美系列| jlzzjlzz欧美大全| 日韩高清一区二区| 国产日本一区二区| 色美美综合视频| 三级成人在线视频| 中文字幕成人网| 欧美色爱综合网| 国产精品一区三区| 亚洲国产欧美另类丝袜| 精品国产免费视频| 色女孩综合影院| 久久91精品国产91久久小草| 最新中文字幕一区二区三区 | 日韩女优av电影| 成人av第一页| 日本sm残虐另类| 国产精品国产成人国产三级 | 国产福利91精品一区二区三区| 亚洲黄色免费电影| 精品福利一区二区三区| 色久优优欧美色久优优| 国产一区二区精品久久91| 夜夜精品视频一区二区| 国产欧美日韩亚州综合| 91麻豆精品国产91久久久资源速度| 国产99精品在线观看| 日韩vs国产vs欧美| 伊人性伊人情综合网| 久久精品亚洲一区二区三区浴池| 欧美午夜精品理论片a级按摩| 国产一区二区精品久久| 日本va欧美va精品发布| 一区二区高清视频在线观看| 国产日韩欧美精品在线| 91精品国产乱| 欧美日韩久久久一区| 91麻豆免费观看| 成人av网站在线观看免费| 美腿丝袜亚洲一区| 午夜精品国产更新| 亚洲一区视频在线| 最新国产の精品合集bt伙计| 久久先锋资源网| 精品久久国产字幕高潮| 欧美一区二区三区婷婷月色| 欧美色综合网站| 日本乱人伦一区| 色94色欧美sute亚洲13| 色婷婷综合久久久久中文| www.久久久久久久久| 成人一二三区视频| 高清在线不卡av| 国产成a人亚洲| 国产aⅴ精品一区二区三区色成熟| 国产综合色产在线精品| 久久99国产精品久久99| 韩日av一区二区| 极品少妇一区二区三区精品视频 | 日韩精品一区二区三区中文精品| 欧美人与性动xxxx| 欧美二区三区91| 欧美一区日本一区韩国一区| 9191久久久久久久久久久| 9191成人精品久久| 日韩精品一区二区三区四区| 精品国产乱码久久久久久浪潮 | 亚洲欧洲制服丝袜| 亚洲日本va午夜在线影院| 亚洲免费伊人电影| 亚洲综合免费观看高清完整版| 亚洲一区自拍偷拍| 日韩精品一级二级 | 大胆亚洲人体视频| 波多野结衣欧美| 欧美性欧美巨大黑白大战| 欧美视频在线一区二区三区 | 欧美色老头old∨ideo| 日韩视频在线一区二区| 久久精品亚洲麻豆av一区二区 | 天堂午夜影视日韩欧美一区二区| 男女视频一区二区| 国产经典欧美精品| av动漫一区二区| 欧美日韩久久一区| 久久久久九九视频| 伊人一区二区三区| 久久99蜜桃精品| 91婷婷韩国欧美一区二区| 欧美美女视频在线观看| 久久久久97国产精华液好用吗| 亚洲欧洲日韩av| 51午夜精品国产| 懂色一区二区三区免费观看| 波多野结衣在线一区| 欧美高清视频一二三区 | 国产日韩欧美a| 亚洲精品午夜久久久| 美女网站视频久久| 99久久国产综合色|国产精品| 欧美酷刑日本凌虐凌虐| 国产女人水真多18毛片18精品视频| 亚洲精品你懂的| 久久97超碰国产精品超碰| 在线观看亚洲专区| 久久免费精品国产久精品久久久久| 亚洲激情图片一区| 国内精品国产成人| 欧美美女bb生活片| 日韩毛片高清在线播放| 精品一区二区三区视频在线观看| 91免费看片在线观看| 精品sm在线观看| 午夜视频在线观看一区二区三区| 国产成人免费网站| 日韩欧美国产综合在线一区二区三区| 亚洲人成网站影音先锋播放| 欧美艳星brazzers| 中文字幕日韩一区二区| 国产专区欧美精品| 在线91免费看| 亚洲高清免费在线| 色综合天天天天做夜夜夜夜做| 精品久久久久久久人人人人传媒| 亚洲高清免费观看高清完整版在线观看 | 精品国产乱码久久久久久久| 亚洲成av人综合在线观看| 91香蕉视频mp4| 国产精品美女久久久久久久久| 久久97超碰色| 欧美一区二区三区小说| 视频一区二区中文字幕| 欧美色窝79yyyycom| 亚洲精品久久嫩草网站秘色|