ChineseChess
2019-05-28 15:01:48 0 举报
Java语言实现中国象棋人机对战 UML类图设计
作者其他创作
大纲/内容
ChessBoard main.client
+ width: int+ focus: boolean+ general1_i: int + general2_i: int + general1_j: int + general2_j: int +startI: int +startJ:int +endI: int +endJ: int
Chess main.client
+ bgColor: Color+ focusbg: Color + focuschar: Color + color1: Color + color2: Color + jlHost: JLabel + jlPort: JLabel + jlNickName: JLabel + jtfHost: JTextField + jbConnect: JButton + jbDisconnect : JButton + jbFail: JButton + jbChallenge: JButton + jcbNickList: JComboBox + jbYChallenge: JButton + jbNChallenge: JButton + width: int + jpy: JPanel + jsp: JSplitPane + judge: boolean + color: int + sc: Socket
+ Chess()+ initialComponent(): void +addListener(): void + initialState(): void + initialCHessPieces(): void + initialFrame(): void + actionPerformed(ActionEvent): void + jbConnect_event(): void + jbDisconnect_event(): void + jbChallenge_event(): void + jbYChallenge_event(): void + jbNChallenge_event(): void + jbFail_event(): void + next(): void + main(String[]): void
ClientAgentThread main.client
+ flag: boolean+ din: DataInputStream+ dout:DataOutputStream + player: String
+ ClientAgentThread(Chess)+ run(): void + name_same():void + nick_list(String):void + server_down(): void + challenge(String): void + agree(): void + disagree(): void + busy():void + move(String): void + surrender(): void
Server main.server
+ jlPort: JLabel+ jtfPort: JTextField + jbStart: JButton + jbStop: JButton + jps: JPanel + jlUserOnline: JList + jspx: JScrollPane + jspz: JSplitPane + ss: ServerSocket + onlineList: Vector
+ Server()+ main(String[]): void + initialComponent(): void + addListener(): void + initialFrame(): void + actionPerformed(ActionEvent): void + jbStart_event(): void + jbStop_event(): void + refreshList(): void
ServerThread main.server
+ ss: ServerSocket+ flag: boolean
+ ServerThread(Server)+ run(): void
Regulation main.client
+ canMove: boolean+ i: int+ j: int
+ Regulation(ChessPiece[][])+ canMove(int): boolean + chariot(int): void + horse(int) : void + elephant1(int): void + elephant2(int): void + guard(int) : void + general(int): void + cannon(int): void + soldier(int): void
ChessPieces main.client
+ color: Color+ name: String + x: int + y: int + focus: boolean
ServerAgentThread main.server
+ sc: Socket+ din: DataInputStream + dout: DataOutPutStream + flag: boolean
收藏
收藏
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容