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

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

?? positionimpl.java

?? chess 一個(gè)beguanyu國(guó)際象棋的一個(gè)Java源碼
?? JAVA
字號(hào):
/*  PositionImpl - A class to implement the functionality of the position                  of one piece of a chess game.  Copyright (C) 2003 The Java-Chess team <info@java-chess.de>  This program 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.  This program 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 this program; if not, write to the Free Software  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.*/ package de.java_chess.javaChess.position;/** * This class implements the functionality to store the position * of a chess piece. */public class PositionImpl implements Position {    // Instance variables    /**     * The index of the chessboard square.     */    private int _squareIndex;    // Constructors    /**     * Create a position from a given square index.     *     * @param squareIndex The index of the square (0..63).     */    public PositionImpl( int squareIndex) {	setSquareIndex( squareIndex);    }    /**     * Create a position from a given square name (i.e. 'd4').     *     * @param squareName The name of the square.     *     * @throws IllegalPositionException If the argument is not a valid square name.     */    public PositionImpl( String squareName) throws IllegalPositionException {		// -1 indicates an error here.	int squareIndex = -1;	// Trim and convert the name to lower case.	squareName = squareName.trim().toLowerCase();		// Check if the name has no extra characters	if( squareName.length() != 2) {	    throw new IllegalPositionException();	} else {	    // Get the line.	    char lineLetter = squareName.charAt(0);	    if( ( lineLetter < 'a') || ( lineLetter > 'h')) {		throw new IllegalPositionException();	    } else {		// Compute the index of the line.		int lineIndex = lineLetter - 'a';		// Get the name of the row.		char rowLetter = squareName.charAt(1);		if( ( rowLetter < '1') || ( rowLetter > '8')) {		    throw new IllegalPositionException();		} else {		    int rowIndex = rowLetter - '1';		    		    // The square index is 8 * row + line.		    squareIndex = ( rowIndex << 3) + lineIndex;		}	    }	}		// Set the computed square index.	setSquareIndex( squareIndex);    }    // Methods    /**     * Get the square index of this position (0-63).     *     * @return The square index of this position.     */    public final int getSquareIndex() {	return _squareIndex;    }    /**     * Set the square index of this position.     *     * @param squareIndex The new square index of this position.     */    public final void setSquareIndex( int squareIndex) {	_squareIndex = squareIndex;    }    /**     * Get the row index of this position (0-7).     *     * @return The row index of this position.     */    public final int getRowIndex() {	return _squareIndex >> 3;    }    /**     * Get the line index of this postion (0-7).     *     * @return The line index of this position.     */    public final int getLineIndex() {	return _squareIndex & 7;    }    /**     * Convert this position to a square name (like 'a4').     *     * @return The suare name of this position.     */    public final String toSquareName() {	byte [] byteRepresentation = new byte[2];	byteRepresentation[0] = (byte)((int)'a' + getLineIndex());	byteRepresentation[1] = (byte)((int)'1' + getRowIndex());	return new String( byteRepresentation);    }    /**     * Test if 2 positions are equal.     *     * @param Another position.     *     * @return true, if the positions are equal, false otherwise.     */    public final boolean equals( Position pos) {	return pos.getSquareIndex() == getSquareIndex();    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费视频网站| 婷婷中文字幕一区三区| 欧美tk—视频vk| 欧美日韩你懂得| 欧美在线free| 9191精品国产综合久久久久久| 91成人免费在线| 欧美日韩国产欧美日美国产精品| 欧美日韩性生活| 日韩一区二区在线观看视频| 日韩一区二区精品| 久久一区二区视频| 国产偷v国产偷v亚洲高清| 中文字幕国产一区二区| 日韩久久一区二区| 午夜精品一区在线观看| 美女视频黄免费的久久| 国产一区二区三区香蕉| 国产91精品欧美| 色婷婷精品久久二区二区蜜臂av | 国产91精品入口| av中文字幕亚洲| 欧美日韩你懂得| 久久一区二区视频| 亚洲综合一二三区| 美女一区二区三区在线观看| 国产精品一二一区| 一本大道久久a久久精品综合| 在线播放一区二区三区| 久久久www成人免费毛片麻豆| 亚洲丝袜制服诱惑| 免费在线观看一区二区三区| 国产成人99久久亚洲综合精品| 日本久久电影网| 精品国产一区二区三区av性色| 亚洲国产岛国毛片在线| 亚洲va欧美va人人爽| 国产福利一区二区三区在线视频| 欧美在线一区二区| 国产亚洲成年网址在线观看| 亚洲成av人片| 成人午夜电影久久影院| 日韩三级伦理片妻子的秘密按摩| 中文字幕一区二区三区在线不卡| 蜜桃视频免费观看一区| 91啪亚洲精品| 久久蜜桃一区二区| 亚洲福利视频导航| 99久久精品免费看国产免费软件| 日韩一区和二区| 一区二区三区免费看视频| 夫妻av一区二区| 欧美本精品男人aⅴ天堂| 亚洲国产精品久久久久秋霞影院| 国产精品亚洲第一| 精品久久久久久久人人人人传媒| 首页欧美精品中文字幕| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 午夜影院在线观看欧美| 99久久99久久综合| 中文字幕电影一区| 国产一区二区在线视频| 日韩欧美的一区| 人人精品人人爱| 欧美丰满嫩嫩电影| 三级在线观看一区二区| 色噜噜夜夜夜综合网| 亚洲同性同志一二三专区| heyzo一本久久综合| 欧美国产精品劲爆| 成人在线综合网站| 国产精品久久久久影院色老大| 国产91丝袜在线18| 国产精品的网站| caoporn国产一区二区| 国产精品国产三级国产普通话蜜臀 | 亚洲精品网站在线观看| 一道本成人在线| 一区二区三区精品在线| 欧美中文字幕一区二区三区| 亚洲自拍偷拍综合| 欧美日韩视频在线一区二区| 婷婷丁香激情综合| 欧美一区二区福利视频| 蜜臀av国产精品久久久久| 日韩亚洲欧美在线观看| 黄色小说综合网站| 中文字幕精品—区二区四季| 色噜噜狠狠一区二区三区果冻| 亚洲一区在线播放| 日韩视频在线永久播放| 精品一区二区三区在线播放| 国产欧美一区二区三区鸳鸯浴 | 欧美日韩日日夜夜| 免费在线观看一区二区三区| 久久精品男人天堂av| 91在线免费看| 午夜精品免费在线观看| 日韩精品中文字幕一区| 成人黄色小视频在线观看| 尤物av一区二区| 日韩精品在线一区| 91欧美一区二区| 水野朝阳av一区二区三区| 久久久久久电影| 在线免费观看日本一区| 久久99久国产精品黄毛片色诱| 中文字幕免费观看一区| 在线一区二区三区做爰视频网站| 美女视频黄a大片欧美| 国产精品丝袜黑色高跟| 7777精品伊人久久久大香线蕉完整版 | 日韩精品一二区| 中文字幕av免费专区久久| 欧美这里有精品| 国产精品69久久久久水密桃| 亚洲成人动漫一区| 欧美国产日本韩| 4hu四虎永久在线影院成人| 粉嫩aⅴ一区二区三区四区| 午夜影视日本亚洲欧洲精品| 国产精品系列在线| 日韩一级片在线观看| 91豆麻精品91久久久久久| 国产精品一区二区在线观看网站| 亚洲成人你懂的| 中文字幕在线不卡一区| 精品国产乱码久久久久久久| 精品视频在线免费| 99久久99久久免费精品蜜臀| 国产精品一二一区| 看国产成人h片视频| 午夜精品久久久久久不卡8050| 国产精品亲子乱子伦xxxx裸| 精品欧美黑人一区二区三区| 欧美日韩国产大片| 色播五月激情综合网| 91网上在线视频| 99热精品国产| 东方aⅴ免费观看久久av| 国内精品久久久久影院色| 全国精品久久少妇| 日韩成人免费看| 无吗不卡中文字幕| 亚洲.国产.中文慕字在线| 亚洲午夜久久久久久久久电影网 | 欧美一级搡bbbb搡bbbb| 欧美日韩国产系列| 欧美曰成人黄网| 在线视频亚洲一区| eeuss国产一区二区三区| 成人av网站在线| 99精品久久99久久久久| jiyouzz国产精品久久| 99re热这里只有精品视频| 99久久久久免费精品国产| 波多野结衣欧美| jlzzjlzz欧美大全| 色哟哟精品一区| 欧美日韩一二三| 欧美一区二区福利在线| xvideos.蜜桃一区二区| 久久色在线观看| 亚洲欧洲另类国产综合| 一区二区三区资源| 婷婷开心久久网| 国产在线精品一区二区三区不卡| 黄色成人免费在线| 成人aa视频在线观看| 色久综合一二码| 欧美一区二区视频观看视频| 精品国产免费人成电影在线观看四季 | 884aa四虎影成人精品一区| 日韩一区二区三区视频在线观看 | 91在线观看地址| 欧美日韩不卡视频| 久久综合成人精品亚洲另类欧美| 国产精品三级电影| 亚洲午夜激情网站| 免费观看久久久4p| 成人激情免费视频| 欧美麻豆精品久久久久久| 精品美女在线观看| 亚洲欧美日韩精品久久久久| 日韩av在线播放中文字幕| 国产成人鲁色资源国产91色综| 色婷婷综合在线| 欧美变态tickling挠脚心| 中文字幕亚洲综合久久菠萝蜜| 亚洲超碰97人人做人人爱| 国产精品香蕉一区二区三区| 色94色欧美sute亚洲线路一久 | 一区二区激情视频| 精品伊人久久久久7777人| 色猫猫国产区一区二在线视频| 精品国产91乱码一区二区三区| 亚洲欧美另类在线| 经典三级在线一区| 欧美日韩午夜在线| 国产精品久久久久久户外露出 |