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

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

?? countryroute.java

?? good project for programmer,,
?? JAVA
字號:
package com.sillysoft.lux.util;import com.sillysoft.lux.*;import java.util.List;import java.util.ArrayList;////  CountryRoute.java//  Lux////  Created by Dustin Sacks on 1/12/05.//  Copyright (c) 2002-2007 Sillysoft Games. All rights reserved.///**CountryRoute is a data structure that stores an ordered path of Country's. */public class CountryRoute {private List route;public CountryRoute(List countries)	{	route = countries;	}public CountryRoute(Country[] countryArray)	{	route = new ArrayList();	for (int i = 0; i < countryArray.length; i++)		route.add(countryArray[i]);	}public CountryRoute(int[] codeArray, Country[] countries)	{	route = new ArrayList();	for (int i = 0; i < codeArray.length; i++)		route.add(countries[codeArray[i]]);	}public Country start()	{	return (Country) route.get(0);	}public Country end()	{	return (Country) route.get(route.size()-1);	}/** The number of Country's in this route. */public int size()	{	return route.size();	}/** Get a Country out of the route. */public Country get(int index)	{	return (Country) route.get(index);	}/** Return true if this route contains the given object (which should be a Country). */public boolean contains(Object o)	{	return route.contains(o);	}/** Get the total count of armies along this route. */public int getArmies()	{	int result = 0;	for (int i = 0; i < route.size(); i++)		result += ((Country)route.get(i)).getArmies();	return result;	}// How many armies not owned by the player are on this route?public int costNotCountingPlayer(int player)	{	int result = 0;	for (int i = 0; i < route.size(); i++)		if (((Country)route.get(i)).getOwner() != player)			result += ((Country)route.get(i)).getArmies();	return result;	}// How many armies not owned by the players are on this route?public int costNotCountingPlayer(int player, int player2)	{	int result = 0;	for (int i = 0; i < route.size(); i++)		if (((Country)route.get(i)).getOwner() != player && ((Country)route.get(i)).getOwner() != player2 )			result += ((Country)route.get(i)).getArmies();	return result;	}/** Append the given CountryRoute onto the end of this one and return the result. Currently this is done in a very simple manner, there may end up being duplicates.*/public CountryRoute append(CountryRoute other)	{	// Start by copying everything in this route until we hit the other one	List result = new ArrayList();	Country otherRouteEntry = null;	for (int i = 0; i < route.size(); i++)		{		if (other.contains(route.get(i)))			{			otherRouteEntry = get(i);			break;	// exit the for loop			}		else			result.add(route.get(i));		}	if (end().equals(otherRouteEntry))		{		// the end of this route is where we first hit the other one.		// no problem - just copy the other one.		for (int i = 0; i < other.route.size(); i++)			result.add(other.route.get(i));		return new CountryRoute(result);		}	// Otherwise we hit the other route before we finished going through this route.	// They must be merged somehow	if (other.end().equals(otherRouteEntry))		{		// just reverse it		for (int i = other.route.size()-1; i >= 0; i--)			result.add(other.route.get(i));		return new CountryRoute(result);		}	// We did not hit the other route at its start or end	// Try and make a new route from where we intersect.	// Back up a country and check all of its neighbors inside the other route, since there may be more then one	CountryCluster otherCluster = new CountryCluster(other.route);	Country lastNonDupe = (Country) result.get(result.size() - 1);	Country[] adjoining = lastNonDupe.getAdjoiningList();	for (int i = 0; i < adjoining.length; i++)		{		if (other.contains(adjoining[i]))			{			CountryRoute newRoute = otherCluster.getSimpleRouteStartingAt(adjoining[i]);			if (newRoute != null)				{				// we found a route starting at a country we can intersect				for (int j = 0; j < newRoute.size(); j++)					result.add(newRoute.route.get(j));				return new CountryRoute(result);				}			}		}	// So it looks like we have a complex route.	// What should we do ? XXXX	System.out.println("CountryRoute.append() could not complete its task. Returning a partly garbage route.");	// Take over as many countries as possible I suppose	// This will not return a valid route	for (int i = 0; i < other.route.size(); i++)		{		if (! result.contains(other.route.get(i)))			result.add(other.route.get(i));		}	return new CountryRoute(result);	}/** Return a route that is the same as this one but in the reverse order. */public CountryRoute reverse()	{	List result = new ArrayList();	for (int i = 0; i < route.size(); i++)		result.add(0, route.get(i));	return new CountryRoute(result);	}public String toString()	{	StringBuffer buffer = new StringBuffer("\n\t<CountryRoute size:"+route.size()+" route:\n\t");	for (int i = 0; i < route.size(); i++)		{		buffer.append(route.get(i));		if (i != route.size()-1)			buffer.append("\n\t");		}	buffer.append(" end route>");	return buffer.toString();	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区视频| 日韩vs国产vs欧美| 国产日韩影视精品| 久久综合成人精品亚洲另类欧美 | 香蕉av福利精品导航| 一区二区三区精品视频在线| √…a在线天堂一区| 国产精品美女视频| 亚洲少妇屁股交4| 日韩理论片在线| 亚洲在线一区二区三区| 一区二区三区在线观看视频 | 91一区在线观看| 97久久精品人人爽人人爽蜜臀 | 精品国产精品网麻豆系列| 欧美一区二区成人6969| 欧美mv日韩mv亚洲| 亚洲精品一区二区三区香蕉 | 亚洲综合网站在线观看| 亚洲午夜国产一区99re久久| 亚洲综合免费观看高清在线观看| 亚洲一区二区av电影| 天天免费综合色| 久久黄色级2电影| 国产成人免费视频精品含羞草妖精| 国产成人在线免费观看| 成人免费高清在线| 在线观看亚洲精品视频| 日韩情涩欧美日韩视频| 中文字幕乱码日本亚洲一区二区| 国产精品国产三级国产有无不卡 | 日本精品裸体写真集在线观看| 欧美自拍丝袜亚洲| 4hu四虎永久在线影院成人| 日韩一级完整毛片| 精品嫩草影院久久| 日韩一区中文字幕| 日日夜夜免费精品视频| 9色porny自拍视频一区二区| 成人短视频下载| 色偷偷久久人人79超碰人人澡| 色婷婷综合久久久久中文| 欧美日韩一区二区在线观看| 精品乱人伦小说| 中文字幕乱码亚洲精品一区| 亚洲精品国产无套在线观| 日韩成人av影视| 成人毛片视频在线观看| 91福利在线观看| 精品成人在线观看| 一区二区三区欧美视频| 久久99国产精品免费网站| 91首页免费视频| 日韩精品一区在线| 亚洲视频免费看| 久久精品国产一区二区三| 色综合天天视频在线观看| 制服丝袜在线91| 国产精品久久久久影院亚瑟| 视频一区二区国产| 国产成人综合网| 欧美精品日韩精品| 欧美国产日本韩| 日本午夜精品一区二区三区电影 | 国产夜色精品一区二区av| 亚洲成人精品一区| 99久久精品一区二区| 精品粉嫩aⅴ一区二区三区四区 | 91福利国产精品| 日本一区二区成人在线| 日韩精品久久理论片| 99国产精品久| 久久网站热最新地址| 天天操天天干天天综合网| 成人av网站在线观看免费| 日韩久久精品一区| 亚洲成人精品一区二区| 色综合天天综合网天天狠天天| 国产亚洲成年网址在线观看| 麻豆国产精品一区二区三区 | 欧美一区二区三区四区在线观看 | 午夜欧美视频在线观看| 99久久夜色精品国产网站| 久久综合久久综合久久综合| 亚洲成人av一区二区| 97国产精品videossex| 国产日韩精品久久久| 精品在线播放免费| 在线成人午夜影院| 亚洲综合精品自拍| 91麻豆.com| 最好看的中文字幕久久| 成人一级片在线观看| 久久久久久一级片| 国产在线精品一区二区夜色 | 欧美经典一区二区三区| 国产精品一区二区三区99| 精品剧情在线观看| 日韩一区二区电影在线| 91亚洲精品久久久蜜桃网站 | 日本 国产 欧美色综合| 3d动漫精品啪啪一区二区竹菊| 亚洲图片有声小说| 欧美喷潮久久久xxxxx| 香蕉久久夜色精品国产使用方法| 欧美日韩精品免费观看视频| 天堂蜜桃91精品| 538在线一区二区精品国产| 蜜臀av一级做a爰片久久| 欧美一区二区三区在线视频 | 欧美大片在线观看一区二区| 蜜臂av日日欢夜夜爽一区| 精品久久一区二区三区| 国产激情一区二区三区四区| 欧美激情中文字幕一区二区| 北条麻妃一区二区三区| 亚洲精品成人天堂一二三| 在线中文字幕不卡| 天天综合网天天综合色| 欧美zozozo| 成人av免费在线观看| 一区二区在线看| 欧美绝品在线观看成人午夜影视| 青娱乐精品视频在线| 亚洲精品一区二区三区精华液 | 国产精品综合一区二区| 中文字幕在线播放不卡一区| 欧美在线视频不卡| 日本美女视频一区二区| 久久亚洲一区二区三区四区| 成人aaaa免费全部观看| 亚洲一区二区欧美日韩| 欧美tickle裸体挠脚心vk| 成人免费观看视频| 亚洲电影中文字幕在线观看| 日韩视频免费直播| 成人免费高清视频| 亚洲午夜久久久久久久久电影院| 日韩西西人体444www| 北岛玲一区二区三区四区| 亚洲一级片在线观看| 精品久久人人做人人爱| 99re这里只有精品首页| 亚洲成人动漫精品| 久久久国产午夜精品| 欧美视频一区二区三区在线观看| 国内精品伊人久久久久av影院 | 秋霞国产午夜精品免费视频| 国产亚洲自拍一区| 色诱视频网站一区| 九色综合狠狠综合久久| 亚洲视频网在线直播| 精品国产a毛片| 欧美在线一区二区三区| 国产高清成人在线| 亚洲成人动漫av| 亚洲国产精品传媒在线观看| 色噜噜狠狠色综合中国| 精品无码三级在线观看视频| 亚洲九九爱视频| 精品欧美黑人一区二区三区| 欧美伊人久久久久久久久影院 | 国产亚洲婷婷免费| 在线观看www91| 国产精品综合二区| 日韩二区三区在线观看| 综合色中文字幕| 精品国产sm最大网站免费看| 欧美日本国产视频| 99精品国产视频| 韩国精品久久久| 偷拍日韩校园综合在线| 中文字幕一区二区三区不卡 | 国产人久久人人人人爽| 欧美一区二区三区精品| 色婷婷国产精品| 国产69精品久久久久777| 青青草国产精品97视觉盛宴| 一区二区三区欧美激情| 国产精品视频一二三区| 欧美变态口味重另类| 欧美日本一道本| 欧美在线小视频| 91女厕偷拍女厕偷拍高清| 国产传媒一区在线| 狠狠色伊人亚洲综合成人| 蜜桃免费网站一区二区三区| 三级影片在线观看欧美日韩一区二区| 亚洲精品乱码久久久久久| 中文字幕av一区二区三区| 欧美精品一区二区久久婷婷| 欧美一区2区视频在线观看| 欧美午夜电影网| 欧美变态口味重另类| 欧美精品在线视频| 欧美日韩另类一区| 精品视频在线免费| 欧亚一区二区三区| 欧美影院精品一区| 欧美亚洲精品一区|