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

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

?? graphicthing.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.utils.vectorgraphics;
import netwar.game.GameViewer;
import netwar.utils.*;
/** Super class for a variety of drawable objects.
 * The subclasses fall into two main categories.
 * Primitive GraphicThings draw themselves directly. The represent basic shapes.
 * Nonprimitive GraphicThings contain one or more other graphic things and draw
 * themselves by drawing the GraphicThings they contain. Some or all of those
 * GraphicThings may themselves by Nonprimitive, but ultimately everything will
 * be drawn as some collection of Primitive GraphicThings.
 */
public abstract class GraphicThing {
	private ZListNode nodes[] = new ZListNode[0];
	private int numnodes = 0;
	/** Called after its data has changed, so it can inform things that are watching it.
	 * This is currently used to update the ordering of ZOrdered lists which contain this.
	 */
	public void update() {
		for(int i = 0; i < numnodes; i++)
			if(nodes[i] != null)
				nodes[i].update(getZ(nodes[i].getT()));
	}
	void addNode(ZListNode zln) {
		if(numnodes == nodes.length) {
			ZListNode nu[] = new ZListNode[numnodes + 3];
			for(int i = 0; i < numnodes; i++)
				nu[i] = nodes[i];
			nodes = nu;
		}
		nodes[numnodes++] = zln;
	}
	void remNode(ZListNode zln) {
		for(int i = 0; i < numnodes; i++) {
			if(nodes[i] == zln) {
				nodes[i] = nodes[--numnodes];
				nodes[numnodes] = null;
			}
		}
	
	}
	/** get the Z coordinate, according to Transform t
	 * Each implementation of GraphicThing defines its own rules for
	 * determining the Z value, usually using the Z values of the points
	 * that define it.
	 * @param t The transform to define the Z value.
	 * @return The Z value according to that transform.
	 */
	public abstract float getZ(Transform t);
	/** Draw this thing. 
	 * Primitive GraphicThings draw themselves.
	 * Non-primitives pass the call onto the GraphicThings they contain.
	 * @param v The object which will provide drawing services.	 
	 */
	public abstract void draw(GameViewer v);
	/** Rotate this GraphicThing.
	 * NOTE: if this GraphicThing shares points with another GraphicThing
	 * then the results could be disasterous. Use a CoherentPointSet
	 * for that situation.
	 * @param axisPt A point on the axis of rotation.
	 * @param axisDir The direction of the axis of rotation.
	 * @param angle The number of degrees to rotate.
	 * @return this GraphicThing, freshly rotated.
	 */
	public abstract GraphicThing rotate(Point3D axisPt, Point3D axisDir, int angle);
	/** Translate this GraphicThing.
	 * NOTE: if this GraphicThing shares points with another GraphicThing
	 * then the results could be disasterous. Use a CoherentPointSet
	 * for that situation.
	 * @param offset The distance and direction to move them.
	 * @return this GraphicThing, freshly rotated.
	 */
	public abstract GraphicThing translate(Point3D offset);
	/** Remove this from all Z-Ordered lists
	 * This is used when the GraphicThing is no longer part of the
	 * visible universe. (It is also used by explode to help
	 * break all previous associations).
	 */
	public void kill() {
		for(int i = numnodes - 1; i >= 0; i--)
			if(nodes[i] != null)
				nodes[i].remove();
		nodes = new ZListNode[0];
		numnodes = 0;
	}
	/** Check for visibility of the GraphicThing.
	 * @param t The transform defining the screen space in question.
	 * @return True iff the GraphicThing is visible on that transform.
	 */
	public abstract boolean isOnScreen(Transform t);
	/** Call to cause the GraphicThing to explode.
	 * The thing will replace itself with one or more DebrisFragment objects.
	 * This will call kill implicitly. Do not use this and continue using 
	 * the GraphicThing.
	 */
	public abstract void explode(Point3D epicenter);
	abstract Point3D getCenter();
	abstract void unlink();
	/** Returns a GraphicThing which is a copy of this GraphicThing.
	 * In the case of Non-primitive GraphicThings, the contained
	 * GraphicThings are also copied into the copy.
	 */
	public abstract GraphicThing copy();
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美在线高清| 国产一区二区三区在线看麻豆| 精品成人私密视频| 欧美一区三区二区| 欧美日韩一级视频| 欧美精品日日鲁夜夜添| 欧美另类变人与禽xxxxx| 欧美三级午夜理伦三级中视频| 一本色道久久综合精品竹菊| 日本韩国欧美在线| 欧美性生活一区| 欧美日韩一级视频| 欧美www视频| 欧美激情在线一区二区三区| 中文字幕高清不卡| 亚洲免费在线电影| 亚洲国产乱码最新视频 | 美女免费视频一区二区| 日韩电影一二三区| 国产又黄又大久久| 成人午夜私人影院| 日本电影欧美片| 欧美日韩国产影片| 精品剧情v国产在线观看在线| 久久老女人爱爱| 国产精品久久久99| 午夜在线成人av| 国产精品一区二区久久不卡| 97国产一区二区| 欧美亚洲国产一区二区三区| 91精品国产乱| 国产精品久久久久久久久久免费看 | 成人欧美一区二区三区| 一区二区三区蜜桃| 久久激情五月婷婷| 99久久伊人精品| 欧美一区二区三区四区高清 | 国产91在线观看丝袜| 色综合久久99| 精品福利一二区| 亚洲色图在线播放| 六月丁香婷婷色狠狠久久| 成人午夜视频免费看| 91精品国产综合久久久久久| 欧美国产日产图区| 首页国产丝袜综合| av一区二区三区在线| 91麻豆精品久久久久蜜臀 | 91.xcao| 亚洲欧美在线视频观看| 久久99国产精品免费| 欧美在线高清视频| 欧美激情一区三区| 美女视频黄久久| 欧美老年两性高潮| 亚洲免费观看高清完整版在线观看 | 欧美性受xxxx| 欧美视频在线观看一区| 国产欧美日本一区二区三区| 全国精品久久少妇| 欧美日韩一区小说| 亚洲日本欧美天堂| 99麻豆久久久国产精品免费优播| 精品美女在线观看| 免费日韩伦理电影| 欧美三级视频在线播放| 亚洲精品国久久99热| 成人福利在线看| 中文字幕乱码日本亚洲一区二区 | 91麻豆文化传媒在线观看| 久久在线免费观看| 久久电影网站中文字幕| 91精品国模一区二区三区| 亚洲成人手机在线| 色噜噜狠狠成人中文综合| 国产精品污污网站在线观看| 国产成人免费视频一区| 精品国产1区二区| 国产精品自拍在线| 久久久精品2019中文字幕之3| 美腿丝袜亚洲综合| 欧美mv和日韩mv的网站| 六月丁香综合在线视频| www国产精品av| 国产乱人伦精品一区二区在线观看 | 日本精品视频一区二区三区| 亚洲日本丝袜连裤袜办公室| 欧美自拍丝袜亚洲| 亚洲成人av电影| 91精品国产一区二区| 秋霞av亚洲一区二区三| 精品福利视频一区二区三区| 麻豆极品一区二区三区| 日韩免费电影一区| 国产精品一二三区| 中文字幕中文字幕一区二区 | 欧美高清视频一二三区 | 婷婷国产在线综合| 九九视频精品免费| 欧美亚日韩国产aⅴ精品中极品| 久久99国产精品久久99| 国产九色sp调教91| 91精品国产乱码| 九九国产精品视频| 久久久久久久久免费| 不卡av电影在线播放| 亚洲欧美另类久久久精品| 欧美日韩国产免费一区二区| 麻豆久久一区二区| 中文乱码免费一区二区| 一本一本久久a久久精品综合麻豆| 日韩一区精品字幕| 国产欧美视频一区二区| 在线观看成人小视频| 精品一区二区免费在线观看| 亚洲精品v日韩精品| 26uuu精品一区二区| 91成人在线精品| 国产伦精品一区二区三区在线观看| 亚洲免费在线电影| 26uuu亚洲综合色| 欧美色综合网站| 欧美高清精品3d| 成人免费视频国产在线观看| 一区二区三区四区视频精品免费 | 亚洲成人精品影院| 久久天堂av综合合色蜜桃网| 欧美性猛交xxxxxx富婆| 国产精品自拍三区| 无码av中文一区二区三区桃花岛| 中文字幕av一区二区三区免费看| 91麻豆精品91久久久久久清纯| 成人动漫视频在线| 韩国av一区二区三区| 亚洲成年人网站在线观看| 亚洲欧洲无码一区二区三区| 欧美不卡一区二区三区四区| 欧美日本国产视频| 91黄色免费版| 色偷偷一区二区三区| 成人激情av网| 极品少妇一区二区三区精品视频| 午夜婷婷国产麻豆精品| 亚洲精品免费电影| **性色生活片久久毛片| 日本一二三不卡| 精品国产亚洲在线| 欧美一区二区高清| 欧美另类高清zo欧美| 欧美日韩亚洲综合| 欧美亚洲动漫制服丝袜| 成人国产亚洲欧美成人综合网| 激情图区综合网| 国产中文字幕一区| 另类成人小视频在线| 美女视频免费一区| 九九视频精品免费| 国产一区二区视频在线播放| 国产传媒久久文化传媒| 成人综合激情网| 91视频免费播放| 精品视频在线免费观看| 欧美日韩精品三区| 91精品国产欧美日韩| 日韩美女天天操| 久久女同性恋中文字幕| 久久这里只有精品首页| 国产三级一区二区| 中文字幕国产精品一区二区| 日韩一区欧美小说| 亚洲线精品一区二区三区 | 精品一区二区三区免费播放| 国产一区二区日韩精品| 成人免费看片app下载| 99精品在线免费| 在线免费观看日本一区| 欧美精品v日韩精品v韩国精品v| 日韩精品专区在线影院观看| 久久久久久97三级| 一区二区三区欧美在线观看| 日韩av电影一区| 国产a视频精品免费观看| 91成人在线观看喷潮| 精品国产电影一区二区| 亚洲精品视频在线观看网站| 日韩和欧美一区二区| 国产99精品国产| 欧美精品v国产精品v日韩精品 | 国产综合一区二区| 成人h精品动漫一区二区三区| 欧美制服丝袜第一页| 欧美刺激脚交jootjob| 中文字幕在线一区| 爽好久久久欧美精品| 国产 日韩 欧美大片| 91精品国产福利在线观看| 国产精品五月天| 日韩中文字幕1| 93久久精品日日躁夜夜躁欧美| 欧美videos中文字幕|