文件名称:XiangQi
介绍说明--下载内容均来自于网络,请自行研究使用
中国象棋打谱软件提供给用户的一个能将对弈过程保存成文件 并可以重新演示对弈过程 即复盘。 主要功能有: 1. 制作棋谱, 2. 保存棋谱, 3. 演示棋谱.
Chess类,190行代码。这个类主要功能是对整个窗体功能的实现,包括菜单、菜单的事件、把JPanel加到窗体的内容面板上,以及窗体属性的设置。
ChessBoard类,457行代码。这个类是主要的类,包含paint()方法用来画整个面板,以及鼠标的事件监听。
ChessPiece类,68行代码。这个类是棋子的类,包含棋子的各个属性
ChessPoint类,132行代码。这个类主要用来定位棋子的,也就是根据鼠标的坐标,通过这个类来计算鼠标现在在第几行,第几列。这样就可以定位棋子了。
Demo类,32行代码。这个类是用来演示棋谱的类。
MakeChessManual类,52行代码。这个类主要是用来记录走棋记录的。
Rule类,370行代码。这个类是用来判断规则的。-Chinese chess DaPu software give the user a will save to file and the process of the game to demo game process that is checking. Main functions are: 1. Make moves, 2. Save moves, 3. Demo moves.
Chess classes, 190 lines of code. This class is the main function of the realization of the function of the whole form, including menu, menu of the incident, the JPanel added to form content panel, and form attribute Settings.
ChessBoard classes, 457 lines of code. This class is the main class, including paint () method is used to draw the entire panel, and the mouse event listeners.
ChessPiece classes, 68 lines of code. This class is the class pieces, including pieces of each attribute
ChessPoint classes, 132 lines of code. This class is mainly used for positioning pieces, namely according to the coordinates of the cursor, through this class to calculate the mouse is now in which line, which column. So you can position the pieces.
Demo classes, 32 lines of code. This class is used to demon
Chess类,190行代码。这个类主要功能是对整个窗体功能的实现,包括菜单、菜单的事件、把JPanel加到窗体的内容面板上,以及窗体属性的设置。
ChessBoard类,457行代码。这个类是主要的类,包含paint()方法用来画整个面板,以及鼠标的事件监听。
ChessPiece类,68行代码。这个类是棋子的类,包含棋子的各个属性
ChessPoint类,132行代码。这个类主要用来定位棋子的,也就是根据鼠标的坐标,通过这个类来计算鼠标现在在第几行,第几列。这样就可以定位棋子了。
Demo类,32行代码。这个类是用来演示棋谱的类。
MakeChessManual类,52行代码。这个类主要是用来记录走棋记录的。
Rule类,370行代码。这个类是用来判断规则的。-Chinese chess DaPu software give the user a will save to file and the process of the game to demo game process that is checking. Main functions are: 1. Make moves, 2. Save moves, 3. Demo moves.
Chess classes, 190 lines of code. This class is the main function of the realization of the function of the whole form, including menu, menu of the incident, the JPanel added to form content panel, and form attribute Settings.
ChessBoard classes, 457 lines of code. This class is the main class, including paint () method is used to draw the entire panel, and the mouse event listeners.
ChessPiece classes, 68 lines of code. This class is the class pieces, including pieces of each attribute
ChessPoint classes, 132 lines of code. This class is mainly used for positioning pieces, namely according to the coordinates of the cursor, through this class to calculate the mouse is now in which line, which column. So you can position the pieces.
Demo classes, 32 lines of code. This class is used to demon
(系统自动生成,下载前可以参看下载内容)
下载文件列表
象棋打谱软件代码\Chess.java
................\ChessBoard.java
................\ChessPiece.java
................\ChessPoint.java
................\Demo.java
................\MakeChessManual.java
................\Rule.java
象棋打谱软件代码