亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产高清久久久| 天堂久久久久va久久久久| 91麻豆精品久久久久蜜臀| 91视频在线观看免费| va亚洲va日韩不卡在线观看| 成人精品免费网站| 91捆绑美女网站| 色婷婷激情一区二区三区| 一本久道中文字幕精品亚洲嫩| 91网站视频在线观看| 色综合一区二区三区| 在线看不卡av| 欧美精品色一区二区三区| 日韩女优制服丝袜电影| 久久综合久久久久88| 国产亚洲精品免费| 亚洲少妇30p| 天天色天天操综合| 精品一区二区三区香蕉蜜桃| 国产激情一区二区三区| 99视频精品全部免费在线| 日本韩国欧美在线| 日韩午夜电影av| 国产蜜臀av在线一区二区三区| 日韩美女视频一区二区| 亚洲成a人片在线不卡一二三区 | 精品美女一区二区| 国产亚洲一二三区| 亚洲免费观看高清| 另类小说综合欧美亚洲| 成人性生交大片免费看视频在线 | 56国语精品自产拍在线观看| 久久亚洲捆绑美女| 伊人婷婷欧美激情| 韩国女主播成人在线| 91蝌蚪porny九色| 欧美xxxxx裸体时装秀| 国产精品夫妻自拍| 麻豆视频一区二区| 91九色最新地址| 久久尤物电影视频在线观看| 一区二区三区91| 国产电影精品久久禁18| 欧美日韩亚洲另类| 亚洲天天做日日做天天谢日日欢| 日本美女一区二区三区| 91视频一区二区| 国产三区在线成人av| 日本欧美一区二区| 日本精品裸体写真集在线观看| 精品福利一二区| 日韩主播视频在线| 7777精品伊人久久久大香线蕉最新版| 久久久久亚洲蜜桃| 日韩一区精品视频| 欧美中文字幕一区二区三区 | 亚洲一区成人在线| 99在线精品一区二区三区| 精品国产91洋老外米糕| 五月婷婷另类国产| 色一情一乱一乱一91av| 欧美国产禁国产网站cc| 韩国精品一区二区| 精品国产伦一区二区三区观看方式| 一区二区三区**美女毛片| 9i看片成人免费高清| 国产视频一区二区在线观看| 国产在线精品一区二区三区不卡| 欧美日韩一区在线| 亚洲自拍都市欧美小说| 91影院在线免费观看| 国产精品国产三级国产aⅴ无密码| 国产一区二区三区av电影| 欧美mv日韩mv亚洲| 国产一区久久久| 国产欧美一区二区精品忘忧草| 精品一区二区三区不卡| 久久久久国产精品麻豆| 国产精品一卡二| 久久美女艺术照精彩视频福利播放 | 国产视频一区二区在线观看| 国产一区二区三区免费观看| 国产婷婷色一区二区三区四区 | aaa国产一区| 亚洲色图在线看| 在线视频你懂得一区二区三区| 亚洲激情五月婷婷| 欧美日韩精品一区二区三区| 日日噜噜夜夜狠狠视频欧美人| 这里只有精品视频在线观看| 久久国内精品视频| 国产亚洲va综合人人澡精品| 成人午夜私人影院| 一区二区三区色| 欧美一二三区在线观看| 国产美女视频一区| 国产精品久线在线观看| 欧美亚洲高清一区| 美国十次综合导航| 国产精品美女视频| 欧美最猛性xxxxx直播| 日韩国产在线观看一区| 精品电影一区二区| www.亚洲人| 亚洲成人av福利| 日本一区二区三区四区在线视频| 欧美精品亚洲二区| 欧美日韩国产免费| 国产欧美日韩久久| 国产视频一区二区在线观看| 成人app网站| 亚洲va韩国va欧美va| 精品欧美乱码久久久久久| 成年人国产精品| 日本欧洲一区二区| 亚洲日本免费电影| 日韩欧美电影一二三| k8久久久一区二区三区| 奇米色一区二区| 亚洲欧美日韩国产手机在线| 日韩免费观看高清完整版| 色婷婷综合久久久久中文一区二区| 日韩 欧美一区二区三区| 最新日韩在线视频| 精品不卡在线视频| 欧美精品在线视频| 色婷婷激情久久| 国产69精品一区二区亚洲孕妇| 偷拍日韩校园综合在线| 综合色中文字幕| 久久精子c满五个校花| 欧美一区二区三区在线观看| 色视频成人在线观看免| 国产91在线|亚洲| 国产尤物一区二区在线| 天天av天天翘天天综合网色鬼国产| 国产精品国产馆在线真实露脸| xf在线a精品一区二区视频网站| 欧美日韩一区高清| 91久久精品一区二区二区| 丰满放荡岳乱妇91ww| 极品尤物av久久免费看| 日本一区中文字幕| 日韩国产欧美一区二区三区| 亚洲一线二线三线久久久| 亚洲图片激情小说| 亚洲人成网站色在线观看| 中文字幕一区二区不卡| 国产精品二三区| 国产精品国产三级国产aⅴ原创 | 亚洲bdsm女犯bdsm网站| 亚洲美女电影在线| 一区二区三区美女| 亚洲另类在线视频| 亚洲一区二区偷拍精品| 亚洲综合无码一区二区| 亚洲一区影音先锋| 亚洲国产精品麻豆| 亚洲成年人网站在线观看| 婷婷综合五月天| 午夜国产精品影院在线观看| 午夜国产精品一区| 精品一区二区三区在线播放视频 | 播五月开心婷婷综合| 99国内精品久久| 欧美中文字幕亚洲一区二区va在线| 欧洲精品一区二区三区在线观看| 在线视频国内自拍亚洲视频| 亚洲精品免费在线观看| 欧美一级精品在线| 成人午夜视频福利| 成人福利视频网站| 欧美在线不卡视频| 91精品国产综合久久福利| 欧美精品一区二区三区在线播放| 久久精品一区二区| 亚洲精品你懂的| 日本成人在线视频网站| 国产馆精品极品| 色视频欧美一区二区三区| 制服丝袜av成人在线看| 久久久久久电影| 亚洲一区二区三区四区在线观看 | 免费观看一级欧美片| 国产又黄又大久久| 日本乱人伦aⅴ精品| 欧美丰满高潮xxxx喷水动漫| 欧美精品一区二| 一区二区三区欧美在线观看| 蜜桃视频在线一区| 91色视频在线| 日韩免费观看高清完整版| 亚洲色图欧美偷拍| 狠狠v欧美v日韩v亚洲ⅴ| av电影在线不卡| 日韩你懂的电影在线观看| 自拍视频在线观看一区二区| 狠狠色综合日日| 欧美日韩一区久久| 欧美sm美女调教|