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

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

?? plynotationimpl.java

?? chess 一個beguanyu國際象棋的一個Java源碼
?? JAVA
字號:
/*  PlyNotationImpl - A class to notate a ply.  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.piece.*;import de.java_chess.javaChess.ply.*;/** * This class holds all the methods to render a ply * as a string notation. */public class PlyNotationImpl implements PlyNotation {    // Instance variables.    /**     * The ply.     */    private Ply _ply;    /**     * The moved piece.     */    private Piece _piece;    /**     * Flag to indicate, if this ply sets the opponent in check.     */    private boolean _check;    /**     * Flag to indicate, if the opponent is checkmate after this ply.     */    private boolean _checkMate;    /**     * A cache for the string representation.     */    private String _stringRepresentation;    // Constructors    /**     * Create a new ply notation instance.     *     * @param ply The ply to render.     * @param piece The moved piece.     */    public PlyNotationImpl( Ply ply, Piece piece) {	setPly( ply);	setPiece( piece);	// Render the string representation only once and not during	// the toString() call.	computeStringRepresentation();    }    // Methods    /**     * Render this notation as a string.     *     * @return A string representation of this ply.     */    public String toString() {	return _stringRepresentation;    }    /**     * Render this ply as a string.     */    private final void computeStringRepresentation() {	StringBuffer notation = new StringBuffer();	if( ! ( getPly() instanceof CastlingPly)) {	    // Start with the type of the piece, if it is not a pawn.	    if( getPiece().getType() != Piece.PAWN) {		notation.append( getPieceTypeNotation( getPiece().getType()));	    }	    // Get this ply as a string.	    String plyString = getPly().toString();	    // If it's a capture, indicate it with an 'x'	    notation.append( isCapture() ? plyString.replace( '-', 'x') : plyString);	    // If it's a pawn transforming to a new piece type, append the new type.	    if( getPly() instanceof TransformationPly) {		notation.append( "=");		notation.append( getPieceTypeNotation( ( (TransformationPly)getPly()).getTypeAfterTransformation()));	    }	} else {	    notation.append( getPly().toString());	}	// Add the check(-mate) signs.	if( isCheckMate()) {	    notation.append( '#');	} else {	    if( isCheck()) {		notation.append( '+');	    }	}		// Convert the buffer to a string and store it.	_stringRepresentation =  notation.toString();    }    /**     * Get the piece of this ply.     *     * @return The piece, that is moved with this ply.     */    public final Piece getPiece() {	return _piece;    }    /**     * Set the piece, that is moved with this ply.     *     * @param ply The moved ply.     */    public final void setPiece( Piece piece) {	_piece = piece;    }    /**     * Get the ply of this notation.     *     * @return The ply for this notation.     */    public final Ply getPly() {	return _ply;    }    /**     * Set the ply for this notation.     *     * @param ply The ply for this notation.     */    public final void setPly( Ply ply) {	_ply = ply;    }    /**     * Check if the piece captures another piece with this ply.     *     * @return true, if another piece is captureed with this ply.     */    public final boolean isCapture() {	return getPly().isCapture();    }    /**     * Get the flag for a check.     *     * @return true, if the opponent is in check.     */    public final boolean isCheck() {	return _check;    }    /**     * Set the flag for a check.     *     * @param check, true if the oppenent is in check.     */    public final void setCheck( boolean check) {	_check = check;	// If we are not in check, we are also no checkmate.	if( check == false) {	    setCheckMate( false);	}	// Recompute the string representation to make sure, that	// it is still correct.	computeStringRepresentation();    }    /**     * Get the flag for a checkmate.     *     * @return true, if the opponent is checkmate.     */    public final boolean isCheckMate() {	return _checkMate;    }    /**     * Set the flag for a checkmate.     *     * @param check, true if the oppenent is checkmate.     */    public final void setCheckMate( boolean checkMate) {	_checkMate = checkMate;	// If the opponent is checkmate, he is also in check.	if( checkMate == true) {	    setCheck( true); 	}    }    /**     * Get the notation for a piece type.     *     * @return The notation for a piece type.     */    public final String getPieceTypeNotation( byte pieceType) {	String notation = "";  // The result;	// Convert the piece type to a string.	switch( pieceType) {	    case Piece.PAWN:   notation = "P"; break;	    case Piece.KNIGHT: notation = "N"; break; 	    case Piece.BISHOP: notation = "B"; break;	    case Piece.ROOK:   notation = "R"; break;   	    case Piece.QUEEN:  notation = "Q"; break;	    case Piece.KING:   notation = "K"; break;	}	return notation;    }}   

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费美女久久99| 亚洲人成亚洲人成在线观看图片| 欧洲中文字幕精品| 91香蕉国产在线观看软件| 91原创在线视频| 在线免费观看日韩欧美| 欧美三区在线观看| 日韩视频一区在线观看| 欧美一区二区三区视频在线观看| 555www色欧美视频| 欧美va亚洲va香蕉在线| 日韩欧美一区二区久久婷婷| 欧美电影免费观看完整版| 久久亚洲免费视频| 国产精品视频在线看| 亚洲欧美精品午睡沙发| 亚洲成人av一区二区三区| 偷拍一区二区三区| 韩国理伦片一区二区三区在线播放 | 久久久蜜臀国产一区二区| 久久久久国色av免费看影院| 国产精品视频看| 亚洲一区二区三区美女| 免费欧美日韩国产三级电影| 国产成人综合在线播放| 欧美性一二三区| 2021中文字幕一区亚洲| 亚洲免费av高清| 老司机精品视频导航| 国产电影精品久久禁18| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产精品嫩草久久久久| 亚洲成人自拍网| 国产在线不卡一区| 一本色道久久综合亚洲aⅴ蜜桃| 欧美日韩精品专区| 国产欧美久久久精品影院| 亚洲精品日产精品乱码不卡| 蜜桃视频在线观看一区| 色噜噜狠狠成人中文综合| 日韩精品一区在线| 亚洲综合在线视频| 国产精品白丝av| 91麻豆精品国产91久久久久久久久 | 欧美成人精品高清在线播放| 亚洲视频免费观看| 国产精品亚洲专一区二区三区| 色国产综合视频| 亚洲国产高清在线| 久热成人在线视频| 欧美日韩视频不卡| 亚洲另类在线视频| 国产99精品国产| 久久蜜臀中文字幕| 九色|91porny| 制服丝袜亚洲精品中文字幕| 亚洲亚洲精品在线观看| 东方欧美亚洲色图在线| 精品免费日韩av| 午夜精品久久久久久久久久| www.爱久久.com| 久久青草国产手机看片福利盒子| 丝袜诱惑亚洲看片| 欧美乱妇23p| 亚洲一区二区三区影院| 色美美综合视频| 亚洲人吸女人奶水| 99免费精品在线| 中文字幕一区二区三区不卡| 国产主播一区二区三区| 精品成人在线观看| 麻豆一区二区三| 日韩一区二区电影在线| 蜜桃91丨九色丨蝌蚪91桃色| 51精品视频一区二区三区| 亚洲一区二区三区小说| 欧美三级乱人伦电影| 日韩精品久久久久久| 欧美一区二区在线看| 男人的天堂久久精品| 精品少妇一区二区三区在线播放| 欧美aaaaa成人免费观看视频| 欧美一卡二卡三卡| 国产一区二区三区免费观看| 久久亚洲一区二区三区四区| 高清日韩电视剧大全免费| 国产精品国产三级国产aⅴ原创| 成人久久18免费网站麻豆| ...av二区三区久久精品| 欧美视频你懂的| 奇米777欧美一区二区| 久久精品一二三| av一二三不卡影片| 亚洲在线视频网站| 日韩精品中文字幕一区二区三区| 韩国毛片一区二区三区| 亚洲欧美在线aaa| 欧美日韩亚洲国产综合| 黄色日韩网站视频| 亚洲欧美日韩综合aⅴ视频| 欧美美女网站色| 国产一区二区三区免费播放| 亚洲人精品一区| 日韩欧美国产一区在线观看| 国产1区2区3区精品美女| 亚洲自拍偷拍九九九| 欧美电影免费观看完整版| thepron国产精品| 日韩不卡在线观看日韩不卡视频| 久久综合久久综合九色| aaa亚洲精品| 蜜桃av一区二区三区电影| 国产精品高潮呻吟| 91精品国产丝袜白色高跟鞋| 国产·精品毛片| 蜜臀久久久久久久| 亚洲视频一区二区免费在线观看| 日韩精品综合一本久道在线视频| 成人av网址在线| 久久99精品久久久久婷婷| 一区二区三区四区国产精品| 2023国产精品视频| 欧美精品视频www在线观看| 成人精品视频一区| 国产自产v一区二区三区c| 午夜精彩视频在线观看不卡| 国产精品麻豆网站| 国产婷婷色一区二区三区四区| 欧美三级电影网| 色婷婷av一区二区三区软件| 国产美女精品一区二区三区| 亚洲超丰满肉感bbw| 亚洲黄色小视频| **欧美大码日韩| 亚洲国产高清不卡| 久久免费午夜影院| 欧美成人激情免费网| 欧美三级在线看| 欧美午夜精品一区二区蜜桃 | 午夜精品在线视频一区| 亚洲欧美在线aaa| 中文字幕中文字幕一区二区| 久久久777精品电影网影网| 精品久久久影院| 精品国精品国产尤物美女| 欧美一卡在线观看| 欧美一区二区精品| 日韩欧美自拍偷拍| 精品欧美一区二区久久| 精品国产免费一区二区三区香蕉| 欧美一级片免费看| 日韩欧美www| 久久久久国色av免费看影院| 久久尤物电影视频在线观看| 久久综合成人精品亚洲另类欧美| 精品日韩一区二区三区 | 成人国产亚洲欧美成人综合网| 黑人巨大精品欧美黑白配亚洲| 久久不见久久见免费视频7| 久久99精品久久久久久| 国内外精品视频| 丰满白嫩尤物一区二区| av影院午夜一区| 色婷婷香蕉在线一区二区| 欧美在线观看视频在线| 欧美久久久久久蜜桃| 日韩女优av电影在线观看| 久久精品亚洲一区二区三区浴池| 中文av字幕一区| 亚洲福利电影网| 日韩福利电影在线| 国产盗摄女厕一区二区三区| 一本色道亚洲精品aⅴ| 在线不卡一区二区| 久久久久久99精品| 亚洲精品乱码久久久久久久久| 婷婷六月综合网| 国产美女一区二区| 一本一本久久a久久精品综合麻豆| 欧美日韩日日摸| 精品少妇一区二区三区免费观看| 国产精品嫩草影院av蜜臀| 亚洲高清视频的网址| 国产真实乱对白精彩久久| 91在线视频观看| 日韩欧美激情一区| 亚洲欧美国产高清| 国产在线视频不卡二| 色欧美片视频在线观看在线视频| 91精品国产综合久久精品app| 国产欧美一区二区精品性色超碰| 亚洲欧美激情视频在线观看一区二区三区| 午夜不卡av在线| 成人小视频在线观看| 91精品国产综合久久精品麻豆 | 久久久三级国产网站| 亚洲国产综合人成综合网站| 福利电影一区二区| 欧美一级一区二区| 亚洲精品高清在线观看|