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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gamenotationimpl.java

?? chess 一個beguanyu國際象棋的一個Java源碼
?? JAVA
字號:
/*  GameNotationImpl - This class implements the functionality to                     notate an entire 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.notation;import de.java_chess.javaChess.renderer2d.*;import java.text.*;import java.util.*;/** * This class implements the functionality to notate an  * entire game. */public class GameNotationImpl implements GameNotation {    // Instance variables    /**     * The info on the players.     */    private String [] _playerInfo = new String[2];    /**     * The name of the used opening.     */    private String _openingName;    /**     * The plies of this game.     */    private ArrayList _plies;    /**     * A string representation of the game notation.     */    private StringBuffer _notation;    /**     * A panel to display the notation.     */    private NotationPanel _notationPanel;    // Constructors    /**     * Create a new game notation instance.     */    public GameNotationImpl() {	_plies = new ArrayList();	_notation = new StringBuffer();    }    // Methods    /**     * Reset the game notation for a new game.     */    public void reset() {	_plies.clear();                  // Remove all the plies.	_notation = new StringBuffer();  // Remove the text.	// Remove the text from the panel.	getNotationPanel().setText( "");	// Remove the player info.	setPlayerInfo( null, true);	setPlayerInfo( null, false);	// Remove the opening name.	setOpeningInfo( null);    }    /**     * Get the notation for a given move and piece color.     *     * @param moveIndex The index of the move.     * @param boolean white Flag to indicate if the color is white.     *     * @return The notation for a given move and color.     */    public final String getMove( int moveIndex, boolean white) {	return getPly( white ? ( moveIndex << 1) : ( moveIndex << 1) + 1);    }    /**     * Get the ply with the given index.     *     * @param plyIndex The index of the ply.     *     * @return The notation for the ply as a string.     */    private final String getPly( int plyIndex) {	return _plies.get( plyIndex).toString();    }    /**     * Add a new ply with it's notation.     *     * @param plyNotation The notation of the new ply.     */    public void addPly( PlyNotation plyNotation) {	_plies.add( plyNotation);		int nPlies = _plies.size();  // Get the number of plies.	if( ( nPlies & 1) != 0) {	    if( nPlies > 1) {  // Start a new line		_notation.append( "\n");	    }	    _notation.append( "" + ( ( nPlies >> 1) + 1) + ". ");	} else {	    _notation.append( " ");	}	_notation.append( plyNotation.toString());	// If there's a panel, display the current notation.	if( null != getNotationPanel()) {	    getNotationPanel().setText( toString());	}    }    /**     * Get a ply with a given index.     *     * @param index The index of the ply.     */    public PlyNotation getPlyNotation( int index) {	return (PlyNotation)( _plies.get( index));    }    /**     * Get the number of plies in this notation.     *     * @return The number of plies.     */    public int size() {	return _plies.size();    }    /**     * Get the entire game as a string.     *     * @return The entire game as a string.     */    public final String toString() {	return _notation.toString();    }    /**     * Get some extended PGN compatible info on the game.     *     * @return Extended PGN compatible info on the game.     */    public final String getPGNheader() {	// Create a buffer for the result.	StringBuffer resultBuffer = new StringBuffer();	// Add a empty event to the header	resultBuffer.append( "[Event \"?\"]\n");	// Info on the site	resultBuffer.append( "[Site \"?\"]\n");	// Add the current date to the header	resultBuffer.append( "[Date \"").append( ( new SimpleDateFormat( "yyyy.MM.dd")).format( new Date())).append( "\"]\n");	// Add the round to the header	resultBuffer.append( "[Round \"?\"]\n");	// Add the name of the white player, if it is available.	if( ! "".equals( getPlayerInfo( true))) {	    resultBuffer.append( "[White \"").append( getPlayerInfo( true)).append( "\"]\n");	}	// Add the name of the black player, if it is available.	if( ! "".equals( getPlayerInfo( false))) {	    resultBuffer.append( "[Black \"").append( getPlayerInfo( false)).append( "\"]\n");	}	// Info on the result	resultBuffer.append( "[Result \"?\"]\n");	// Convert the header to a String and return it.	return resultBuffer.toString();    }    /**     * Get some info on a player.     *     * @return Some info on a player.     */    public final String getPlayerInfo( boolean white) {	return _playerInfo[ white ? 1 : 0];    }    /**     * Set the info on a player.     *     * @param playerInfo The player info.     * @param white Flag to indicate, if it's the player      *              with the white pieces.     */    public final void setPlayerInfo( String playerInfo, boolean white) {	_playerInfo[ white ? 1 : 0] = playerInfo;    }    /**     * Get the info on the used opening.     *     * @return The name of the used opening.     */    public final String getOpeningInfo() {	return _openingName;    }    /**     * Set the info on the used opening.     *     * @param name The name of the opening.     */    public final void setOpeningInfo( String name) {	_openingName = name;    }    /**     * Get the panel for the output.     *     * @return The panel for the output.     */    public final NotationPanel getNotationPanel() {	return _notationPanel;    }    /**     * Set the panel for the notation output.     *     * @param notationPanel The panel for the output.     */    public final void setNotationPanel( NotationPanel notationPanel) {	_notationPanel = notationPanel;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产性色一区二区| 精品国产一区二区三区不卡| 国产高清精品网站| 精品系列免费在线观看| 国产一区二区三区黄视频 | 波多野结衣在线aⅴ中文字幕不卡| 精品无人码麻豆乱码1区2区 | 欧美色网一区二区| 欧美视频日韩视频| 91精品国产全国免费观看| 欧美videossexotv100| 久久久国产精华| 国产精品精品国产色婷婷| 国产精品超碰97尤物18| 一区二区三区四区在线免费观看| 亚洲一区中文在线| 免费久久精品视频| 国产传媒日韩欧美成人| 欧洲国产伦久久久久久久| 91精品国产综合久久国产大片| 亚洲精品一区二区三区影院| 亚洲国产精品v| 一区二区激情视频| 麻豆国产欧美一区二区三区| 成人黄色在线看| 欧美日韩国产一级片| 久久久一区二区| 国产精品福利电影一区二区三区四区| 亚洲丝袜美腿综合| 日本中文在线一区| 本田岬高潮一区二区三区| 欧美日本在线播放| 国产精品久久久久四虎| 首页国产欧美日韩丝袜| 国产成人精品三级| 91精选在线观看| 久久夜色精品国产欧美乱极品| 亚洲免费观看高清完整版在线观看熊| 婷婷国产在线综合| 99久久99久久久精品齐齐 | 国产精品亚洲视频| 欧美影院一区二区三区| 久久久www成人免费毛片麻豆| 亚洲福利视频一区二区| 99精品欧美一区| 欧美电视剧在线看免费| 亚洲精品伦理在线| 福利电影一区二区| 日韩一级高清毛片| 一区二区三区四区视频精品免费| 国产自产高清不卡| 7777精品伊人久久久大香线蕉最新版| 国产精品久久99| 国产超碰在线一区| 日韩欧美亚洲国产另类| 丝袜亚洲另类欧美| 欧洲国产伦久久久久久久| 亚洲视频每日更新| 成人app在线| 国产精品网曝门| 国产精品香蕉一区二区三区| 日韩欧美www| 日本aⅴ亚洲精品中文乱码| 色哟哟在线观看一区二区三区| 国产精品丝袜一区| 成人av小说网| 日本一区二区三区在线观看| 久久福利视频一区二区| 日韩一区二区三区av| 首页亚洲欧美制服丝腿| 欧美挠脚心视频网站| 午夜免费欧美电影| 欧美精品丝袜中出| 视频一区二区国产| 欧美一区二区三区的| 免费国产亚洲视频| 欧美mv日韩mv国产网站| 久久97超碰国产精品超碰| 精品av综合导航| 国产伦精品一区二区三区免费| 国产欧美一区二区精品秋霞影院| 国产成人精品三级| 亚洲日本va午夜在线电影| 色天使久久综合网天天| 午夜视频一区二区| 日韩欧美色综合| 国产一区不卡视频| 国产精品久久久久久久久免费樱桃 | 在线观看网站黄不卡| 五月天激情综合网| 日韩欧美一区二区不卡| 国产69精品久久99不卡| 最新日韩在线视频| 欧美日韩国产精选| 激情文学综合网| 日韩一区日韩二区| 在线不卡的av| 国产91露脸合集magnet| 亚洲在线成人精品| 日韩欧美国产综合在线一区二区三区| 国产激情视频一区二区在线观看 | 亚洲超碰97人人做人人爱| 日韩精品专区在线| 成人动漫中文字幕| 亚洲1区2区3区4区| 国产三级精品视频| 欧美日本免费一区二区三区| 国产精品 日产精品 欧美精品| 亚洲卡通动漫在线| 久久综合九色综合97婷婷女人| 91在线码无精品| 韩国成人精品a∨在线观看| 亚洲九九爱视频| 精品国产凹凸成av人网站| 92国产精品观看| 国产一区二区三区免费播放 | 国产乱码精品一区二区三区忘忧草| 亚洲日本在线a| 久久精品视频一区二区三区| 欧美日韩一区二区三区高清| 国产成人免费视频网站| 欧美aaa在线| 亚洲香蕉伊在人在线观| 国产精品免费视频观看| 日韩精品一区二区三区老鸭窝| 日本韩国一区二区三区视频| 国产成人免费视频一区| 久久se精品一区二区| 天天影视涩香欲综合网| 亚洲欧美一区二区三区孕妇| 国产目拍亚洲精品99久久精品| 日韩一区二区三| 正在播放亚洲一区| 欧美日韩在线播放三区四区| 9i在线看片成人免费| 成人动漫一区二区| 国产激情一区二区三区桃花岛亚洲| 日本欧美在线观看| 日韩一区精品字幕| 亚洲成精国产精品女| 亚洲国产精品久久人人爱蜜臀| 亚洲欧洲av另类| 国产精品久久久99| 国产精品传媒入口麻豆| 一区在线中文字幕| 国产精品美女久久久久高潮| 国产亚洲精久久久久久| 久久亚洲一级片| 久久综合一区二区| 久久久久国产精品麻豆ai换脸| 2020国产成人综合网| 国产亚洲综合av| 国产精品视频在线看| 亚洲免费观看视频| 亚洲国产日韩一级| 日韩中文字幕一区二区三区| 日韩中文字幕亚洲一区二区va在线 | 色哟哟国产精品免费观看| 91免费视频观看| 欧美日韩欧美一区二区| 欧美日韩免费高清一区色橹橹 | 九九视频精品免费| 国模一区二区三区白浆| 成人不卡免费av| 欧美亚洲愉拍一区二区| 91精品国产一区二区| 久久久蜜桃精品| 亚洲美女偷拍久久| 三级一区在线视频先锋| 激情欧美日韩一区二区| jvid福利写真一区二区三区| 色视频一区二区| 日韩视频免费直播| 中文字幕欧美国产| 亚洲韩国一区二区三区| 久久99久久99| 一本到高清视频免费精品| 欧美精品v国产精品v日韩精品 | 欧美年轻男男videosbes| 日韩免费观看高清完整版在线观看| 久久综合国产精品| 亚洲精品美国一| 国产精品中文欧美| 欧美日韩视频在线观看一区二区三区 | 首页亚洲欧美制服丝腿| 国产黄色精品网站| 欧美日韩一区小说| 国产精品嫩草影院av蜜臀| 五月天欧美精品| www.av精品| 欧美成人一级视频| 亚洲精品成人少妇| 国产乱码精品一区二区三 | 久久久影视传媒| 亚洲福利电影网| av在线一区二区三区| 日韩精品中文字幕一区二区三区| 日韩毛片在线免费观看| 国产一区二区三区香蕉| 欧美久久久久免费|