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

📄 horizoncells.java

📁 一款数独游戏的Java源代码
💻 JAVA
字号:
package cells;import java.util.List;import entity.AbstractCells;import entity.Point;import entity.Value;public class HorizonCells extends AbstractCells {	public HorizonCells(Point begin, Point end, List<Value> policyOringinalValue) {		super(begin, end, policyOringinalValue);		if (begin.getXIndex() != end.getXIndex()) {			throw new ArithmeticException("Wrong x index !begin:"					+ begin.getXIndex() + ",end:" + end.getXIndex());		}	}	@Override	protected boolean initCondition(Point point) {		boolean result = false;		int yindexBegin = this.getBegin().getYIndex();		int yindexEnd = this.getEnd().getYIndex();		int xindexBegin = this.getBegin().getXIndex();		if (point.getXIndex() == xindexBegin) {			if ((point.getYIndex() >= yindexBegin)					&& (point.getYIndex() <= yindexEnd)) {				result = true;			}		}		return result;	}}

⌨️ 快捷键说明

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