⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 playeriterator.java

📁 good project for programmer,,
💻 JAVA
字号:
package com.sillysoft.lux.util;import com.sillysoft.lux.Country;////  PlayerIterator.java//  Lux////  Copyright (c) 2002-2007 Sillysoft Games. //	http://sillysoft.net//	lux@sillysoft.net////	This source code is licensed free for non-profit purposes. //	For other uses please contact lux@sillysoft.net///**An Iterator of all the Countries that are owned by <I>player</i>.*/public class PlayerIterator extends CountryIterator {private int player;public PlayerIterator(int player, Country[] countries)	{	this.countries = countries;	this.player = player;		getNextReady();	}public PlayerIterator(int player, CountryIterator iter)	{	chained = iter;	this.countries = iter.countries;	this.player = player;		getNextReady();	}// This method should be over-riden in subclasses for different kinds.protected boolean isAHit( int code )	{	if (countries[code].getOwner() == player)		{		return true;		}	return false;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -